Debian Codegraph @

.github/workflows/rust.yml

raw symbols SCIP
1 name: Rust
2
3 on:
4 push:
5 branches: ["main"]
6 pull_request:
7 branches: ["main"]
8
9 env:
10 CARGO_TERM_COLOR: always
11
12 jobs:
13 test:
14 runs-on: ${{ matrix.os }}
15 strategy:
16 matrix:
17 os: [ubuntu-latest, macos-latest, windows-latest]
18 steps:
19 - uses: actions/checkout@v4
20 - uses: actions-rs/toolchain@v1
21 with:
22 toolchain: stable
23 - uses: actions-rs/cargo@v1
24 with:
25 command: test
26
27 fmt:
28 runs-on: ubuntu-latest
29 steps:
30 - uses: actions/checkout@v4
31 - uses: actions-rs/toolchain@v1
32 with:
33 toolchain: nightly
34 override: true
35 components: rustfmt
36 - uses: actions-rs/cargo@v1
37 with:
38 command: fmt
39 args: --all -- --check
40
41 clippy:
42 runs-on: ubuntu-latest
43 steps:
44 - uses: actions/checkout@v4
45 with:
46 toolchain: nightly
47 override: true
48 components: clippy
49 - uses: actions-rs/cargo@v1
50 with:
51 command: clippy
52 args: -- -D warnings