-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (27 loc) · 977 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Rust
on:
push:
paths:
- 'rust-keybroker/**'
pull_request:
paths:
- 'rust-keybroker/**'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Formatting checks
run: cargo fmt --manifest-path=rust-keybroker/Cargo.toml --all -- --check
- name: Clippy checks
run: cargo clippy --manifest-path=rust-keybroker/Cargo.toml --all-targets -- -D clippy::all -D clippy::cargo -A clippy::multiple-crate-versions
- name: Build
run: cargo build --manifest-path=rust-keybroker/Cargo.toml --verbose
- name: Run tests
run: cargo test --manifest-path=rust-keybroker/Cargo.toml --verbose
- name: Install keybroker-app
run: cargo install --path=rust-keybroker/keybroker-app --root $RUNNER_TEMP/keybroker-demo
- name: Install keybroker-server
run: cargo install --path=rust-keybroker/keybroker-server --root $RUNNER_TEMP/keybroker-demo