-
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (38 loc) · 978 Bytes
/
commit.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
name: Commit
on:
pull_request: {}
push:
branches:
- main
jobs:
Checks:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.80.1
components: clippy rustfmt
- uses: taiki-e/install-action@cargo-make
- name: Checks
run: cargo make checks
Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.80.1
components: clippy rustfmt
- uses: taiki-e/install-action@cargo-make
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Coverage
run: cargo make codecov-coverage
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: target/codecov.json