-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 946 Bytes
/
lint.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
on:
push:
paths:
- control-plane/**
- data-plane/**
- shared/**
- acme-server
- .github/workflows/lint.yml
name: Lint
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install MUSL Tools
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- uses: dtolnay/[email protected]
with:
targets: x86_64-unknown-linux-musl
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
with:
shared-key: "standard-cache"
- name: Check formatting
run: cargo fmt --check
- name: Clippy
uses: clechasseur/rs-clippy-check@v3
with:
args: --features enclave -- -D warnings
- name: Clippy check not enclave
uses: clechasseur/rs-clippy-check@v3
with:
args: --features not_enclave -- -D warnings