Debian Codegraph @

debian/missing-sources/cfg-expr/.github/workflows/ci.yml

raw symbols SCIP
1 on:
2 push:
3 branches:
4 - main
5 pull_request:
6
7 concurrency:
8 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9 cancel-in-progress: true
10
11 name: CI
12 jobs:
13 lint:
14 name: Lint
15 runs-on: ubuntu-24.04
16 steps:
17 - uses: actions/checkout@v4
18 - uses: dtolnay/rust-toolchain@stable
19 with:
20 components: "clippy, rustfmt"
21
22 # make sure all code has been formatted with rustfmt
23 - name: check rustfmt
24 run: cargo fmt -- --check --color always
25
26 # run clippy to verify we have no warnings
27 - run: cargo fetch
28 - name: cargo clippy
29 run: cargo clippy --all-targets --all-features -- -D warnings
30
31 test:
32 name: Test
33 strategy:
34 matrix:
35 toolchain: [1.85.0, stable]
36 runs-on: ubuntu-24.04
37 steps:
38 - uses: actions/checkout@v4
39 - uses: dtolnay/rust-toolchain@master
40 with:
41 toolchain: ${{ matrix.toolchain }}
42 - run: cargo fetch
43 - name: cargo test build
44 run: cargo build --tests --release
45 - name: cargo test
46 run: cargo test --release
47 - name: cargo test build all-features
48 run: cargo build --tests --release --all-features
49 - name: cargo test all-features
50 run: cargo test --release --all-features
51
52 deny-check:
53 name: cargo-deny
54 runs-on: ubuntu-24.04
55 steps:
56 - uses: actions/checkout@v4
57 - uses: EmbarkStudios/cargo-deny-action@v2
58
59 publish-check:
60 name: Publish Check
61 runs-on: ubuntu-24.04
62 steps:
63 - uses: actions/checkout@v4
64 - uses: dtolnay/rust-toolchain@stable
65 - run: cargo fetch
66 - name: cargo publish check
67 run: cargo publish --dry-run