-
Notifications
You must be signed in to change notification settings - Fork 292
44 lines (42 loc) · 1.03 KB
/
test.yml
File metadata and controls
44 lines (42 loc) · 1.03 KB
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
name: "Test Suite"
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
os:
- ubuntu
- macos
- windows
toolchain:
- stable
- 1.79
name: cargo test on ${{ matrix.os }}, rust ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: Cargo test
run: cargo test --workspace --all-targets
- name: Cargo doc test
run: cargo test --doc
# Check for clippy warnings
clippy:
name: Cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Cargo clippy
run: cargo clippy --workspace --all-targets
env:
RUSTFLAGS: "" # Don't make test fail on clippy