-
-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (35 loc) · 931 Bytes
/
test.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
name: test
on:
push:
branches: ["main"]
pull_request:
merge_group:
jobs:
test:
name: test
runs-on: ubuntu-latest
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: true
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up sccache (part 1)
uses: mozilla-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up sccache (part 2)
run: sccache --start-server
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-llvm-cov,cargo-nextest
- name: Run tests
run: |
cd ${{ github.workspace }}
cargo clippy
just ci-test
- name: Upload coverage information
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}