build(deps): bump codecov/codecov-action from 4 to 5 #440
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |