-
-
Notifications
You must be signed in to change notification settings - Fork 25
97 lines (95 loc) · 2.63 KB
/
test.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
90
91
92
93
94
95
96
97
name: test
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
test-linux:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: just,nextest,cargo-llvm-cov
- name: Run cargo doc, deny warnings
run: |
export RUSTDOCFLAGS="-D warnings"
cargo doc --all-features --no-deps
- name: Run cargo clippy
run: |
cargo clippy --all-targets --all-features
- name: Run tests and collect coverage
run: just ci-test
- name: Upload coverage information
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
test-windows:
runs-on: windows-2022
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run cargo check
run: |
cargo check --all-targets --all-features
- name: Run cargo nextest
run: |
cargo nextest run --profile ci
test-macos:
runs-on: macos-12
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Rust specified toolchain
run: rustup show
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run cargo check
run: |
cargo check --all-targets --all-features
- name: Run cargo nextest
run: |
cargo nextest run --profile ci