-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (62 loc) · 2.01 KB
/
coverage.yml
File metadata and controls
65 lines (62 loc) · 2.01 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: coverage
on:
push:
branches:
- main
- release
- trial-*
paths-ignore:
- '**.md'
pull_request:
branches:
- main
- release
paths-ignore:
- '**.md'
permissions: {}
jobs:
coverage:
# Skip if this workflow is triggered by dependabot.
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
continue-on-error: true
permissions:
contents: read
id-token: write
steps:
# Remove packages in order to avoid "No space left on device" error in `make coverage`.
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
submodules: recursive
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: stable
components: rustfmt
# The following error occurs when using davidlattimore/wild-action in this workflow.
#
# ```
# error: linker `clang` not found
# |
# = note: No such file or directory (os error 2)
# ```
#
# Probably, jlumbroso/free-disk-space uninstalls clang-* and this causes the error.
- uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 # staging
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
with:
deno-version-file: .tool-versions
- uses: taiki-e/install-action@5f57d6cb7cd20b14a8a27f522884c4bc8a187458 # v2.75.19
with:
tool: cargo-llvm-cov, nextest
- name: Codegen
run: make -j $(nproc) codegen
- name: Generate code coverage
run: |
make coverage LLVM_COV_ARGS='--codecov --output-path=codecov.json'
- uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
files: codecov.json
fail_ci_if_error: true
use_oidc: true