Skip to content

Commit 2ac9a9e

Browse files
committed
Add a CI job to run cargo vet
1 parent bdeeaee commit 2ac9a9e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,29 @@ jobs:
2626
cargo clippy -- --version
2727
cargo clippy --workspace --all-targets -- -Dwarnings
2828
29+
cargo-vet:
30+
runs-on: ubuntu-24.04
31+
32+
env:
33+
CARGO_VET_VERSION: 0.10.1
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- uses: actions/cache@v4
39+
with:
40+
path: ${{ runner.tool_cache }}/cargo-vet
41+
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
42+
43+
- name: Add the tool cache directory to the search path
44+
run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH
45+
46+
- name: Ensure that the tool cache is populated with the cargo-vet binary
47+
run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
48+
49+
- name: Invoke cargo-vet
50+
run: cargo vet --locked
51+
2952
build:
3053
strategy:
3154
matrix:

0 commit comments

Comments
 (0)