Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 pull_request:
5 push:
6 branches:
7 - master
8
9 jobs:
10 test:
11 name: Test with Rust ${{ matrix.rust }}
12 runs-on: ubuntu-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 rust: [1.41.1, stable, beta, nightly]
17 steps:
18 - uses: actions/checkout@v2
19 - uses: hecrj/setup-rust-action@v1
20 with:
21 rust-version: ${{ matrix.rust }}
22 - run: cargo test --verbose --all-features
23 - run: cargo test --verbose --no-default-features --features alloc
24 - run: cargo test --verbose --no-default-features
25
26 clippy:
27 name: Lint with Clippy
28 runs-on: ubuntu-latest
29 env:
30 RUSTFLAGS: -Dwarnings
31 steps:
32 - uses: actions/checkout@v2
33 - uses: hecrj/setup-rust-action@v1
34 with:
35 components: clippy
36 - run: cargo clippy --all-targets --verbose --no-default-features
37 - run: cargo clippy --all-targets --verbose --all-features
38
39 test-minimal:
40 name: Test minimal dependency version with Rust nightly
41 runs-on: ubuntu-latest
42 steps:
43 - uses: actions/checkout@v2
44 - uses: hecrj/setup-rust-action@v1
45 with:
46 rust-version: nightly
47 - run: cargo test -Zminimal-versions --verbose --all-features
48
49 miri:
50 name: Run tests under `miri` to check for UB
51 runs-on: ubuntu-latest
52 steps:
53 - uses: actions/checkout@v3
54 - uses: dtolnay/rust-toolchain@nightly
55 with:
56 components: miri
57 - run: cargo miri test --all-features