-
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@2541b1294d2704b0964813337f33b291d3f8596b
- 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@2541b1294d2704b0964813337f33b291d3f8596b
- uses: EmbarkStudios/cargo-deny-action@30ecad1d5873c1cc2cad10a33637371ca094768b
with:
command: check ${{ matrix.checks }}
clippy:
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: docker://rust:1.60-buster
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- run: rustup component add clippy
- run: cargo clippy --all-targets --all-features