-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (26 loc) · 1008 Bytes
/
lint.yml
File metadata and controls
32 lines (26 loc) · 1008 Bytes
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
name: Lint
concurrency:
group: lint-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: fmt
run: nix develop .#ci -c cargo fmt
- name: Lint
run: |
nix develop .#ci -c cargo clippy -- -Dwarnings
nix develop .#ci -c cargo clippy --no-default-features -- -Dwarnings
nix develop .#ci -c cargo clippy --features=std -- -Dwarnings
nix develop .#ci -c cargo clippy --features=merge -- -Dwarnings
nix develop .#ci -c cargo clippy --features=option -- -Dwarnings
nix develop .#ci -c cargo clippy --features=none_as_default -- -Dwarnings
nix develop .#ci -c cargo clippy --features=keep_none -- -Dwarnings
nix develop .#ci -c cargo clippy --features=nesting -- -Dwarnings