Add cargo deny action to CI

This commit is contained in:
Luke Street 2022-02-03 02:00:36 -05:00
parent 6227718564
commit 46fa0c59ff
1 changed files with 21 additions and 7 deletions

View File

@ -1,10 +1,28 @@
name: build name: Build
on: [ push, pull_request ] on: [ push, pull_request ]
jobs: jobs:
default: check:
name: Default name: Check
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [ stable, 1.51.0, nightly ]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
build:
name: Build
strategy: strategy:
matrix: matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ] platform: [ ubuntu-latest, macos-latest, windows-latest ]
@ -17,10 +35,6 @@ jobs:
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
override: true override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test