-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (42 loc) · 1.06 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
name: Test
on:
push:
branches: [master]
paths-ignore:
- "README_ZH.md"
- "README.md"
pull_request:
branches: [master]
paths-ignore:
- "README_ZH.md"
- "README.md"
jobs:
clippy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
# os: [macos-latest, windows-latest]
steps:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy
- uses: actions/checkout@v4
- name: Run `cargo clippy`
run: cargo clippy --all -- -D warnings
test:
needs: clippy
runs-on: ${{ matrix.os }}
strategy:
matrix:
# No Linux test for now as it just fails due to not having a desktop environment.
os: [macos-latest, windows-latest]
steps:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Checkout
uses: actions/checkout@v4
- name: Run `cargo test`
run: cargo test --all