Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: test
2
3 on:
4 push:
5 branches:
6 - main
7 - release/**
8 pull_request:
9 branches:
10 - main
11 - release/**
12 schedule:
13 - cron: '0 3 * * 4'
14
15 jobs:
16 ## Run all default oriented feature sets across all platforms.
17 platform-matrix:
18 name: platform
19 runs-on: ${{ matrix.os }}
20 strategy:
21 matrix:
22 #os: [ubuntu-latest, macos-latest, windows-latest]
23 os: [ubuntu-latest]
24 steps:
25 - uses: actions/checkout@v1
26
27 - uses: actions-rs/toolchain@v1
28 with:
29 profile: minimal
30 toolchain: stable
31 override: true
32
33 - name: cargo test --all --all-targets --all-features
34 run: cargo test --all --all-targets --all-features
35
36 ## Execute the clippy checks
37 cleanliness:
38 name: cleanliness
39 runs-on: ubuntu-latest
40 needs: platform-matrix
41 steps:
42 - uses: actions/checkout@v1
43
44 # not using the cargo cache here, since this differs significantly
45 - name: cargo-all cache
46 uses: actions/cache@v1
47 with:
48 path: ~/.cargo
49 key: ${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
50 restore-keys: |
51 ${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}
52 ${{ runner.os }}-cargo-all
53 ${{ runner.os }}-cargo
54
55 - uses: actions-rs/toolchain@v1
56 with:
57 profile: minimal
58 toolchain: stable
59 components: rustfmt, clippy
60 override: true
61
62 # Clippy
63 - name: cargo clippy
64 run: cargo clippy --lib --examples --tests --bins --all-features -- -D warnings
65 # Rustfmt
66 - name: cargo fmt
67 run: cargo fmt -- --check
68 # Audit
69 - name: cargo audit
70 run: cargo install cargo-audit && cargo audit --deny warnings