-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.02 KB
/
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
34
35
36
37
38
39
40
on:
push:
merge_group:
name: Rust
jobs:
format:
name: Format Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/[email protected]
- uses: mbrobbel/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
static_code_analysis:
name: Static code analysis
needs: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/[email protected]
with:
components: clippy
- name: Check code without default features
run: cargo check --no-default-features
- name: Check with clippy with all features enabled
run: cargo clippy --all-features -- -D warnings
unit-tests:
env:
RUST_BACKTRACE: 0
name: Unit tests
needs: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/[email protected]
- name: Run unit tests
run: cargo test