-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (35 loc) · 1.09 KB
/
lint-check.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
name: Lint
on:
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
run_lint:
name: Lint and Style checks
runs-on: ubuntu-latest
timeout-minutes: 25
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Cargo Registry and Target Directory
uses: actions/[email protected]
id: cache-cargo
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-nightly-debug-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-nightly-debug-
${{ runner.os }}-cargo-${{ github.workflow }}
- name: Set up Rust Nightly
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2024-01-01
- name: Set up Just
uses: extractions/setup-just@v1
- name: Just lint-check
run: just lint-check -2024-01-01