Skip to content

build(deps): bump taiki-e/install-action from 2.81.6 to 2.81.8 #1546

build(deps): bump taiki-e/install-action from 2.81.6 to 2.81.8

build(deps): bump taiki-e/install-action from 2.81.6 to 2.81.8 #1546

Workflow file for this run

name: coverage
on:
push:
branches:
- main
- release
- trial-*
paths-ignore:
- '**.md'
pull_request:
branches:
- main
- release
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
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 # v1
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
with:
deno-version-file: .tool-versions
- uses: taiki-e/install-action@0631aa6515c7d545823c67cfae7ef4fc7f490154 # v2.81.8
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@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
if: env.CODECOV_TOKEN != ''
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}