-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (37 loc) · 1.11 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
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
uses: actions/checkout@v1
- name: Setup | Cache cargo
uses: actions/cache@v3
with:
path: ~/.cargo
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}
- name: Setup | Cache build
uses: actions/cache@v3
with:
path: ./target
key: target-${{ runner.os }}-${{ github.run_id }}
restore-keys: target-${{ runner.os }}
- name: Setup | Install rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Test | Clippy
run: cargo clippy
- name: Test | Unit test for ncmdump
run: cargo test --release --all-features --package ncmdump
- name: Test | Unit test for ncmdump-bin
run: cargo test --release --all-features --package ncmdump-bin