-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (56 loc) · 1.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
name: Test
on:
push:
branches:
- main
- release-*
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
runs-on: ubuntu-latest
env:
RUST_LOG: info
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build
run: cargo build --workspace --release
- name: Run doctests
run: cargo test --workspace --release --doc
- name: Run tests
run: |
cargo nextest run --workspace --release -j 2 \
--lib --bins --tests --benches --all-features \
--verbose --no-fail-fast
timeout-minutes: 60
test-ignored:
runs-on: ubuntu-latest
env:
RUST_MIN_STACK: 64000000
RUST_LOG: info
steps:
- uses: styfle/[email protected]
name: Cancel Outdated Builds
with:
all_but_latest: true
access_token: ${{ github.token }}
- uses: actions/checkout@v4
name: Checkout Repository
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
- name: Run slow tests
run: |
cargo nextest run --workspace --release -j 1 \
--lib --bins --tests --benches --all-features \
--verbose --no-fail-fast --run-ignored only
timeout-minutes: 60