-
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (49 loc) · 1.27 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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
fmt-and-test:
name: Test and check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
override: true
components: rustfmt
- name: Rustfmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Test
run: |
cargo test
cargo test --all-features
cargo test --no-default-features --lib --tests
cargo test --no-default-features --features libm
test:
name: Test MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: "1.60.0"
override: true
- name: Use Cargo.lock.msrv
run: cp Cargo.lock.msrv Cargo.lock
- name: Test
run: |
cargo test
cargo test --all-features
cargo test --no-default-features --lib --tests
cargo test --no-default-features --features libm