miden-crypto/.github/workflows/lint.yml
.github/workflows/lint.ymlRaw
1# Runs linting related jobs.
2
3name: lint
4
5on:
6 push:
7 branches: [main, next]
8 pull_request:
9 types: [opened, reopened, synchronize]
10
11jobs:
12 clippy:
13 name: clippy nightly on ubuntu-latest
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@main
17 - name: Clippy
18 run: |
19 rustup update --no-self-update nightly
20 rustup +nightly component add clippy
21 make clippy
22
23 rustfmt:
24 name: rustfmt check nightly on ubuntu-latest
25 runs-on: ubuntu-latest
26 steps:
27 - uses: actions/checkout@main
28 - name: Rustfmt
29 run: |
30 rustup update --no-self-update nightly
31 rustup +nightly component add rustfmt
32 make format-check
33
34 doc:
35 name: doc stable on ubuntu-latest
36 runs-on: ubuntu-latest
37 steps:
38 - uses: actions/checkout@main
39 - name: Build docs
40 run: |
41 rustup update --no-self-update
42 make doc
43
44 version:
45 name: check rust version consistency
46 runs-on: ubuntu-latest
47 steps:
48 - uses: actions/checkout@main
49 with:
50 profile: minimal
51 override: true
52 - name: check rust versions
53 run: ./scripts/check-rust-version.sh