-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (58 loc) · 1.72 KB
/
coverage.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: coverage
on:
push:
branches:
- main
- release
- trial-*
paths-ignore:
- '**.md'
# Don't run this workflow on pull_request.
# This workflow uses secrets.
pull_request_target:
branches:
- main
- release
paths-ignore:
- '**.md'
env:
DENO_DIR: /tmp/deno
jobs:
coverage:
# Skip if this workflow is triggered by dependabot.
if: ${{ github.actor != 'dependabot[bot]' }}
# a temporal fix for llvm/llvm-project#99502
#runs-on: ubuntu-latest
runs-on: ubuntu-24.04
continue-on-error: true
steps:
# Remove packages in order to avoid "No space left on device" error in `make coverage`.
- uses: jlumbroso/[email protected]
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: denoland/setup-deno@v2
with:
deno-version-file: .tool-versions
# TODO: Caching dependencies
- uses: taiki-e/install-action@nextest
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Install LLVM
run: |
sh -x tools/bin/github_actions_install_llvm.sh
- name: Codegen
run: make codegen
- name: Generate code coverage
run: |
make coverage LLVM_COV_ARGS='--codecov --output-path=codecov.json' TEST262_ARGS=''
- uses: codecov/codecov-action@v5
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}