-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (40 loc) · 950 Bytes
/
Copy pathmain.yml
File metadata and controls
48 lines (40 loc) · 950 Bytes
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: testcov
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Run cargo fmt
run: cargo fmt -- --check
# lint:
# name: Run Linter (clippy)
# runs-on: ubuntu-latest
# # [req:qa.sustain]
# needs: format
# steps:
# - uses: actions/checkout@v6
# - name: Run linter
# run: cargo clippy -- -D warnings
test:
name: Run Tests and Report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@just
- uses: taiki-e/install-action@grcov
- name: Run tests
run: just testcov
- name: Collect data
run: just collect
- name: Generate report
run: just report