-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (32 loc) · 968 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
36
37
38
39
40
41
42
43
44
name: Lint
on:
- pull_request
- push
jobs:
lint:
name: Rust ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
matrix:
rust: [ stable, "1.74" ]
steps:
- uses: actions/checkout@v4
- name: Set Rust version
run: rustup default ${{ matrix.rust }}
- name: Install cargo-fmt and cargo-clippy
run: rustup component add rustfmt clippy
- name: Lint
run: tests/lint.sh
minimal-dependency-versions:
name: Validate minimal dependency versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Rust version
run: rustup default 1.74
- name: Install cargo-hack and cargo-minimal-versions
run: |
rustup toolchain add nightly &&
cargo +nightly install cargo-hack cargo-minimal-versions --locked
- name: Validate minimal dependency versions
run: cargo minimal-versions check --workspace