Skip to content

Commit a4375a6

Browse files
Merge 3cf3d83 into 603b095
2 parents 603b095 + 3cf3d83 commit a4375a6

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/coverage.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,52 @@ on:
1111

1212
name: Lint, Test and Coverage Report
1313
jobs:
14+
unit-tests:
15+
name: Unit tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: stable
23+
override: true
24+
- uses: actions-rs/cargo@v1
25+
with:
26+
command: test
27+
28+
fmt:
29+
name: Rust fmt check
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: stable
37+
override: true
38+
- run: rustup component add rustfmt
39+
- uses: actions-rs/cargo@v1
40+
with:
41+
command: fmt
42+
args: --all -- --check
43+
44+
clippy:
45+
name: Cargo Clippy check
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v3
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
profile: minimal
52+
toolchain: stable
53+
override: true
54+
- run: rustup component add clippy
55+
- uses: actions-rs/cargo@v1
56+
with:
57+
command: clippy
58+
args: -- -D warnings
59+
1460
coverage:
1561
runs-on: ubuntu-latest
1662
steps:

0 commit comments

Comments
 (0)