mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 23:37:47 +00:00
34 lines
578 B
YAML
34 lines
578 B
YAML
# This runs `cargo audit` on all dependencies (only if Cargo deps changed)
|
|
|
|
name: Audit
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**/Cargo.toml'
|
|
- '**/Cargo.lock'
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
audit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Cache
|
|
uses: actions/cache@v3.2.3
|
|
with:
|
|
path: |
|
|
~/.cargo
|
|
target
|
|
key: audit
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Install dependencies
|
|
run: cargo install cargo-audit --locked
|
|
- name: Audit
|
|
run: cargo audit
|
|
|