File tree Expand file tree Collapse file tree 2 files changed +18
-75
lines changed Expand file tree Collapse file tree 2 files changed +18
-75
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : " Testing Suite "
1
+ name : " Testing"
2
2
on : [push, pull_request]
3
3
4
4
jobs :
5
- unit-test :
6
- permissions :
7
- contents : write
5
+ test :
8
6
strategy :
9
7
matrix :
10
- platform : [macos-latest, ubuntu-20.04, windows-latest]
11
-
12
- runs-on : ${{ matrix.platform }}
8
+ os : [macos-latest, ubuntu-latest, windows-latest]
9
+ runs-on : ${{ matrix.os }}
13
10
steps :
14
- - uses : actions/checkout@v4
11
+ - name : Checkout
12
+ uses : actions/checkout@v4
15
13
with :
16
14
submodules : true
17
-
18
- - name : Initialize Rust Cache
19
- uses : actions/cache@v4
20
- with :
21
- path : |
22
- ~/target
23
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
24
-
25
- - name : Setup pnpm
26
- uses : pnpm/action-setup@v2
27
- with :
28
- version : 8
29
-
30
- - name : Install Rust stable
31
- uses : dtolnay/rust-toolchain@stable
32
-
15
+ - name : Init cache
16
+ uses : Swatinem/rust-cache@v2
33
17
- name : Install dependencies (Ubuntu only)
34
- if : matrix.platform == 'ubuntu-20.04 '
18
+ if : matrix.os == 'ubuntu-latest '
35
19
run : |
36
- sudo apt-get update
37
- sudo apt-get install -y libdbus-1-dev pkg-config
38
-
39
- - name : Run test suite
40
- working-directory : ./
41
- run : cargo test --features ts-gen
20
+ sudo apt-get install -y libdbus-1-dev
21
+ - name : cargo check
22
+ run : cargo check
23
+ - name : cargo fmt
24
+ run : cargo fmt --all -- --check
25
+ - name : cargo clippy
26
+ run : cargo clippy -- -D warnings
27
+ - name : cargo test
28
+ run : cargo test --all-features
You can’t perform that action at this time.
0 commit comments