Skip to content

chore(ci): bump GitHub Actions to Node 24 #21

chore(ci): bump GitHub Actions to Node 24

chore(ci): bump GitHub Actions to Node 24 #21

Workflow file for this run

# Copyright 2026 Circle Internet Group, Inc. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Code Coverage
on:
pull_request:
branches: [master]
push:
branches: [master]
env:
MINIMUM_COVERAGE_PERCENT: 90
permissions:
contents: read
jobs:
coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Rust
run: ./scripts/setup-rust.sh
- name: Install llvm-tools-preview component
run: rustup component add llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Check coverage threshold
run: |
cargo llvm-cov --all-features --workspace --ignore-filename-regex 'test.*\\.rs$' --fail-under-lines ${{ env.MINIMUM_COVERAGE_PERCENT }}
- name: Generate HTML coverage report for debugging
run: |
cargo llvm-cov --all-features --workspace --ignore-filename-regex 'test.*\\.rs$' --html
if: failure()
- name: Upload HTML report as artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage-report
path: target/llvm-cov/html/
if: failure()