-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (88 loc) · 2.41 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
on:
push:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
jobs:
check:
strategy:
fail-fast: false
matrix:
include:
- build: pinned
rust: 1.74.0
- build: stable
rust: stable
- build: beta
rust: beta
- build: nightly
rust: nightly
runs-on: ubuntu-latest
name: "Check rust ${{ matrix.rust }}"
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.build }}-${{ hashFiles('**/Cargo.lock') }}
- name: setup rust ${{ matrix.rust }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy, rustfmt
- name: setup nextest
uses: lmaotrigine/fetch-crate-action@mistress
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
owner: nextest-rs
name: nextest
bin: cargo-nextest
- name: setup just
uses: lmaotrigine/fetch-crate-action@mistress
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
owner: casey
name: just
- name: setup ripgrep
uses: lmaotrigine/fetch-crate-action@mistress
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
owner: BurntSushi
name: ripgrep
bin: rg
- name: setup mdbook
uses: lmaotrigine/fetch-crate-action@mistress
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
owner: rust-lang
name: mdBook
bin: mdbook
- name: setup mdbook-linkcheck
uses: lmaotrigine/fetch-crate-action@mistress
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
owner: Michael-F-Bryan
name: mdbook-linkcheck
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 18
- name: install dependencies
run: |
npm install -g stylelint typescript eslint
npm install
- name: check and test
run: |
just ci
shell: bash
env:
RUST_TOOLCHAIN: ${{ matrix.rust }}