-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.04 KB
/
pr.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
name: PR
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
# setup
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Rust
uses: ./.github/actions/setup
- name: Install more cargo tools
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov,cargo-nextest
# test
- name: Run tests and generate coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info nextest --profile ci
- uses: mikepenz/action-junit-report@v4
if: always()
with:
check_name: test
report_paths: "**/junit.xml"
# lint
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
name: lint
if: always()
# coverage
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.2.3
if: always()