Repository navigation
60 lines (54 loc) · 1.55 KB
/
Copy pathrustsec.yml
File metadata and controls
60 lines (54 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: rustsec
permissions: {}
on:
pull_request:
paths:
- ".github/workflows/rustsec.yml"
- "cargo-lock/**"
- "cvss/**"
- "platforms/**"
- "rustsec/**"
- "Cargo.*"
push:
branches: main
defaults:
run:
working-directory: rustsec
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.85.0 # MSRV
- stable
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
- run: cargo check
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --features=dependency-tree,osv-export,binary-scanning
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: 1.85.0 # MSRV
override: true
profile: minimal
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
- run: cargo doc --features=dependency-tree,osv-export,binary-scanning