Skip to content

Commit

Permalink
Add a recommended pipeline example to prevent breakages from advisori…
Browse files Browse the repository at this point in the history
…es (#22)
  • Loading branch information
Veetaha authored Aug 29, 2020
1 parent 3187ba4 commit 4cf1075
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
```
Expand All @@ -41,14 +41,38 @@ jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
log-level: warn
command: check
arguments: --all-features
```
### Recommended pipeline to avoid sudden breakages
```yaml
name: CI
on: [push, pull_request]
jobs:
cargo-deny:
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources

# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}

steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
```
## Users
Repositories using this action (PR to add your repo):
Expand Down

0 comments on commit 4cf1075

Please sign in to comment.