Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 pull_request:
5 push:
6 branches: main
7 merge_group:
8
9 permissions: {}
10
11 jobs:
12 test-msrv:
13 name: Test MSRV
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17 with:
18 persist-credentials: false
19 - name: Run tests
20 run: cargo test
21 - name: Verify working directory is clean
22 run: git diff --exit-code
23
24 test-latest:
25 name: Test latest
26 runs-on: ubuntu-latest
27 steps:
28 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29 with:
30 persist-credentials: false
31 - uses: dtolnay/rust-toolchain@stable
32 id: toolchain
33 - run: rustup override set ${RUST_TOOLCHAIN}
34 shell: bash
35 env:
36 RUST_TOOLCHAIN: ${{steps.toolchain.outputs.name}}
37 - name: Remove lockfile to build with latest dependencies
38 run: rm Cargo.lock
39 - name: Run tests
40 run: cargo test
41 - name: Verify working directory is clean (excluding lockfile)
42 run: git diff --exit-code ':!Cargo.lock'
43
44 clippy:
45 name: Clippy (MSRV)
46 runs-on: ubuntu-latest
47 steps:
48 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49 with:
50 persist-credentials: false
51 - name: Run clippy
52 uses: auguwu/clippy-action@94a9ff2f6920180b89e5c03d121d0af04a9d3e03 # 1.4.0
53 with:
54 token: ${{ secrets.GITHUB_TOKEN }}
55 check-args: >
56 --all-targets
57 args: >
58 -D warnings
59
60 fmt:
61 name: Rustfmt
62 runs-on: ubuntu-latest
63 steps:
64 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
65 with:
66 persist-credentials: false
67 - name: Check formatting
68 run: cargo fmt --all -- --check