generated from Flokkq/git-cliff-template
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.36 KB
/
main.yaml
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
49
50
51
52
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
target
~/.cargo/registry
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
- run: cargo install cargo-tarpaulin
- run: cargo tarpaulin --no-fail-fast --out xml || true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
target
~/.cargo/registry
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: dtolnay/rust-toolchain@v1
with:
components: clippy, rustfmt
toolchain: nightly
- run: cargo fmt --check && cargo clippy --all-features --all-targets --workspace
- run: cargo test --all-features smd
name: main
on:
pull_request:
branches:
- main
push:
branches:
- main