-
Notifications
You must be signed in to change notification settings - Fork 186
62 lines (49 loc) · 1.36 KB
/
run-tests.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
name: "test"
on:
pull_request:
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/run-tests.yml"
- "!.github/workflows/tests.yml"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
nox:
uses: ./.github/workflows/tests.yml
with:
ref: ${{ github.ref }}
test-retries: 0
lints:
runs-on: builder
env:
RUSTFLAGS: "-D warnings --cfg tokio_unstable -C link-arg=-B/usr/local/bin/mold"
RUSTC_WRAPPER: "sccache"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dsherret/rust-toolchain-file@v1
- name: Setup cache
uses: Swatinem/rust-cache@v2
with:
cache-directories: ~/.cache/sccache
shared-key: nox
save-if: false
- name: Setup sccache
uses: mozilla-actions/[email protected]
- name: Setup mold linker
uses: rui314/setup-mold@v1
with:
make-default: false
- name: Run cargo check
run: cargo check
- name: Run cargo clippy
uses: giraffate/clippy-action@v1
with:
reporter: github-pr-review
clippy_flags: -Z unstable-options --all
fail_on_error: true
- name: Run cargo fmt
uses: actions-rust-lang/rustfmt@v1