-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (48 loc) · 1.04 KB
/
test.yaml
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
name: Test
on:
pull_request:
branches:
- main
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: taplo-cli@0.9.3
- uses: Swatinem/rust-cache@v2
- name: Toml format
run: make static-toml
- name: Format
run: make fmt
- name: Lint
run: make clippy
- name: Doc
run: make doc
test:
needs: static
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build
run: make build
- name: Test
run: make test
ci_pass:
if: ${{ always() }}
name: "All Jobs Pass"
runs-on: "ubuntu-latest"
needs:
- static
- test
steps:
- name: check status
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}