-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (36 loc) · 1.06 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Check
on:
pull_request: {}
jobs:
check:
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: docker://rust:1.60-buster
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
- run: make check-fmt check
audit:
timeout-minutes: 5
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@a12a3943b4bdde767164f792f33f40b04645d846
- uses: EmbarkStudios/cargo-deny-action@ccfac4e084d1dedad50125be4550f87a21ba181e
with:
command: check ${{ matrix.checks }}
clippy:
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: docker://rust:1.60-buster
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
- run: rustup component add clippy
- run: cargo clippy --all-targets --all-features