-
Notifications
You must be signed in to change notification settings - Fork 93
43 lines (38 loc) · 1.01 KB
/
lint.yml
File metadata and controls
43 lines (38 loc) · 1.01 KB
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
41
42
43
on:
push:
branches:
- main
pull_request:
branches:
- "*"
types:
- opened
- synchronize
- reopened
- ready_for_review
name: lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v6
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "proving-keys,redis,disk-cleanup,go"
cache-key: "lint"
- name: Run linters
run: |
set -euxo pipefail
rustup install nightly
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
rustup component add --toolchain nightly rustfmt
rustup component add --toolchain nightly clippy
rustup component add --toolchain 1.86-x86_64-unknown-linux-gnu clippy
just lint