Skip to content

Commit

Permalink
Add cargo audit and cargo outdated checks. (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora authored Aug 11, 2020
1 parent feaf133 commit b5ec8dd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
branches:
- master

schedule:
- cron: '0 0 * * *'

jobs:

licenses:
Expand All @@ -38,6 +41,32 @@ jobs:
export PATH=$PATH:$(go env GOPATH)/bin
addlicense -check .
audit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Run cargo audit
run: |
cp -p cargo/Cargo.lock .
cargo audit
outdated:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Run cargo outdated
run: cargo outdated --exit-code 1

- name: Check freshness of cargo/Cargo.lock
run: |
cargo generate-lockfile
mv Cargo.lock cargo/
git diff --exit-code
stable:
runs-on: ubuntu-latest

Expand Down

0 comments on commit b5ec8dd

Please sign in to comment.