-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.41 KB
/
ci.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
47
48
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
Audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: EmbarkStudios/cargo-deny-action@e2f4ede4a4e60ea15ff31bc0647485d80c66cfba # v2
with:
command-arguments: --hide-inclusion-graph
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Check formating
run: cargo --locked fmt --check
- name: Check code style
run: cargo --locked clippy --all-features --all-targets -- --deny warnings
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install nextest
uses: taiki-e/install-action@7e1dca9e0c58340bd342a8aa00ad82587936018d # v2
with:
tool: nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@7e1dca9e0c58340bd342a8aa00ad82587936018d # v2
with:
tool: cargo-llvm-cov
- name: Run tests with coverage
run: cargo --locked llvm-cov nextest
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
if: success() || failure()
with:
name: junit.xml
path: target/nextest/default/junit.xml