mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
ci: add cargo deny action (#125)
* ci: add `cargo-deny` workflow * ci: allow advisory failures in deny workflow * ci: only run deny workflow if `Cargo.lock` changed * chore: driveby formatting of readme
This commit is contained in:
38
.github/workflows/deny.yml
vendored
Normal file
38
.github/workflows/deny.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Cargo.lock'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Cargo.lock'
|
||||
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
NEXTEST_EXPERIMENTAL_FILTER_EXPR: 1
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
name: deny
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
checks:
|
||||
- advisories
|
||||
- bans licenses sources
|
||||
|
||||
continue-on-error: ${{ matrix.checks == 'advisories' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v3
|
||||
- name: Check
|
||||
uses: EmbarkStudios/cargo-deny-action@v1
|
||||
with:
|
||||
command: check ${{ matrix.checks }}
|
||||
Reference in New Issue
Block a user