Skip to content

Commit b5ec8dd

Browse files
authored
Add cargo audit and cargo outdated checks. (#23)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent feaf133 commit b5ec8dd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/rust.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
branches:
2525
- master
2626

27+
schedule:
28+
- cron: '0 0 * * *'
29+
2730
jobs:
2831

2932
licenses:
@@ -38,6 +41,32 @@ jobs:
3841
export PATH=$PATH:$(go env GOPATH)/bin
3942
addlicense -check .
4043
44+
audit:
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
50+
- name: Run cargo audit
51+
run: |
52+
cp -p cargo/Cargo.lock .
53+
cargo audit
54+
55+
outdated:
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- uses: actions/checkout@v2
60+
61+
- name: Run cargo outdated
62+
run: cargo outdated --exit-code 1
63+
64+
- name: Check freshness of cargo/Cargo.lock
65+
run: |
66+
cargo generate-lockfile
67+
mv Cargo.lock cargo/
68+
git diff --exit-code
69+
4170
stable:
4271
runs-on: ubuntu-latest
4372

0 commit comments

Comments
 (0)