-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1020 Bytes
/
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
name: 🧪 Cargo Tests
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- '.github/workflows/test.yml'
- 'src/**/*.rs'
- 'Cargo.toml'
pull_request:
paths:
- '.github/workflows/test.yml'
- 'src/**/*.rs'
- 'Cargo.toml'
env:
RUST_BACKTRACE: 1
jobs:
test:
name: Run tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: cargo test
test-no-std:
name: Run tests (unstable-thread-local)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install nightly Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-11-11
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: cargo test --features unstable-thread-local