-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (84 loc) · 2.37 KB
/
ci.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
CARGO_TERM_VERBOSE: true
jobs:
check:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run basic tests
run: ./check.sh -v
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: giraffate/clippy-action@v1
with:
reporter: github-pr-review
extra:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run extra tests
run: |
cargo install cargo-tomlfmt
./check-extra.sh -v
msrv:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/[email protected]
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- name: Run tests with MSRV
run: ./check-msrv.sh -v
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Test yash-arith
run: cargo test --all-features --package yash-arith
- name: Test yash-executor
run: cargo test --all-features --package yash-executor
- name: Test yash-fnmatch
run: cargo test --all-features --package yash-fnmatch
- name: Test yash-quote
run: cargo test --all-features --package yash-quote
- name: Test yash-syntax
run: cargo test --all-features --package yash-syntax
- name: Test yash-env
run: cargo test --all-features --package yash-env
- name: Test yash-env-test-helper
run: cargo test --all-features --package yash-env-test-helper
- name: Test yash-semantics
run: cargo test --all-features --package yash-semantics
- name: Test yash-prompt
run: cargo test --all-features --package yash-prompt
- name: Test yash-builtin
run: cargo test --all-features --package yash-builtin
summarize:
runs-on: ubuntu-latest
needs: [check, clippy, extra, msrv, windows]
if: ${{ always() }}
steps:
- uses: Kesin11/actions-timeline@v2