Skip to content

Commit ae28ed1

Browse files
committed
fix(ci): string interpolation & use cargo deny action
1 parent c0819a4 commit ae28ed1

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,19 @@ jobs:
4040
run: cargo clippy -p ${{ crate-name } --features ${{ default-features }} --no-deps
4141
working-directory: ${{ crate-path }}
4242

43-
- name: Check for Crate Duplication
44-
run: cargo deny check bans
45-
working-directory: ${{ crate-path }}
46-
47-
- name: Check for Advisories
48-
run: cargo deny check advisories
49-
working-directory: ${{ crate-path }}
43+
cargo-deny:
44+
runs-on: ubuntu-latest
45+
strategy:
46+
matrix:
47+
checks:
48+
- advisories
49+
- bans
50+
continue-on-error: ${{ matrix.checks == 'advisories' }}
51+
steps:
52+
- uses: actions/checkout@v2
53+
- uses: EmbarkStudios/cargo-deny-action@v2
54+
with:
55+
command: check ${{ matrix.checks }}
5056

5157
test:
5258
name: Run Host Tests

0 commit comments

Comments
 (0)