Skip to content

Commit fb03175

Browse files
authored
chore(CI): run cargo-udeps and cargo-audit (#7)
1 parent 0605f12 commit fb03175

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

‎.github/workflows/rust.yml‎

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
# https://github.com/xd009642/tarpaulin
1112
TARPAULIN_VERSION: 0.35.1
13+
# https://github.com/est31/cargo-udeps
14+
UDEPS_VERSION: 0.1.60
15+
# https://github.com/rustsec/rustsec
16+
AUDIT_VERSION: 0.22.1
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
1221

1322
jobs:
1423
linter:
@@ -37,5 +46,25 @@ jobs:
3746
- name: Run tests
3847
run: cargo test --verbose
3948

40-
- name: Run coverage
49+
- name: Run tarpaulin
4150
run: cargo tarpaulin --verbose
51+
52+
audit:
53+
runs-on: ubuntu-latest
54+
name: Cargo udeps and audit
55+
needs: linter
56+
57+
steps:
58+
- uses: actions/checkout@v4
59+
60+
- name: Install cargo-udeps
61+
run: cargo install cargo-udeps@${{ env.UDEPS_VERSION }} --locked
62+
63+
- name: Install cargo-audit
64+
run: cargo install cargo-audit@${{ env.AUDIT_VERSION }} --locked
65+
66+
- name: Run cargo udeps
67+
run: cargo +nightly udeps --verbose
68+
69+
- name: Run cargo audit
70+
run: cargo audit

0 commit comments

Comments
 (0)