Add cargo audit check

Signed-off-by: trivernis <trivernis@protonmail.com>
actions
trivernis 4 years ago
parent f0a0e6c7a6
commit 6fbd7fdb92
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -19,9 +19,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
target/**/build target
target/**/deps
target/**/incremental
~/.cargo/ ~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: | restore-keys: |
@ -30,6 +28,10 @@ jobs:
run: cargo build --verbose run: cargo build --verbose
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose
- name: Run audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
build-release: build-release:

Loading…
Cancel
Save