Commit e8c7e0c 1 parent 5d2048a commit e8c7e0c Copy full SHA for e8c7e0c
File tree 5 files changed +57
-1
lines changed
5 files changed +57
-1
lines changed Original file line number Diff line number Diff line change 38
38
with :
39
39
toolchain : stable
40
40
targets : ${{ matrix.target }}
41
- components : rustfmt, clippy
42
41
43
42
- name : Cache cargo files
44
43
uses : actions/cache@v4
Original file line number Diff line number Diff line change 14
14
CARGO_TERM_COLOR : always
15
15
16
16
jobs :
17
+ test :
18
+ uses : ./.github/workflows/test.yml
19
+ secrets : inherit
20
+ clippy :
21
+ uses : ./.github/workflows/clippy.yml
22
+ secrets : inherit
23
+ format :
24
+ uses : ./.github/workflows/format.yml
25
+ secrets : inherit
17
26
build :
27
+ needs : [test, clippy, format]
18
28
uses : ./.github/workflows/build.yml
19
29
secrets : inherit
Original file line number Diff line number Diff line change
1
+ on : workflow_call
2
+
3
+ jobs :
4
+ clippy :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v4
8
+
9
+ - name : Set up Rust toolchain
10
+ uses : dtolnay/rust-toolchain@stable
11
+ with :
12
+ toolchain : stable
13
+ components : clippy
14
+
15
+ - name : Run clippy check
16
+ run : cargo clippy --all-features --all-targets -- -D warnings
Original file line number Diff line number Diff line change
1
+ on : workflow_call
2
+
3
+ jobs :
4
+ clippy :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v4
8
+
9
+ - name : Set up Rust toolchain
10
+ uses : dtolnay/rust-toolchain@stable
11
+ with :
12
+ toolchain : stable
13
+ components : rustfmt
14
+
15
+ - name : Run rustfmt check
16
+ run : cargo fmt --all -- --check
Original file line number Diff line number Diff line change
1
+ on : workflow_call
2
+
3
+ jobs :
4
+ test :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v4
8
+
9
+ - name : Set up Rust toolchain
10
+ uses : dtolnay/rust-toolchain@stable
11
+ with :
12
+ toolchain : stable
13
+
14
+ - name : Test with cargo test
15
+ run : cargo test
You can’t perform that action at this time.
0 commit comments