-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (50 loc) · 1.46 KB
/
Copy pathpull_request.yaml
File metadata and controls
65 lines (50 loc) · 1.46 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Pull Request
on: [pull_request]
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Rust
run: rustup show
- name: Run Tests
run: make test
format:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Rust
run: rustup show
- name: Check Formatting
run: make check-fmt
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Rust
run: rustup show
- name: Check Linting
run: make lint
coverage:
name: Coverage
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Rust
run: rustup show
- uses: taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # 2.75.4
with:
tool: cargo-tarpaulin
- name: Generate coverage
run: cargo tarpaulin --out Lcov --engine llvm
- name: Upload to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
files: ./lcov.info
token: ${{ secrets.CODECOV_TOKEN }}