Skip to content

Update dependency rules_fuzzing to v0.5.1 (#40) #124

Update dependency rules_fuzzing to v0.5.1 (#40)

Update dependency rules_fuzzing to v0.5.1 (#40) #124

Workflow file for this run

name: Coverage
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ '*' ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Install bazelisk
run: |
mkdir -p "${GITHUB_WORKSPACE}/bin/"
wget https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -O "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'microsoft'
- name: Install clang-16
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main"
sudo apt-get update
sudo apt-get install -y clang-16 libc++-16-dev libc++abi-16-dev
echo "/usr/lib/llvm-16/bin" >> $GITHUB_PATH
- name: Generate coverage
run: |
"${GITHUB_WORKSPACE}/bin/bazel" coverage --nocache_test_results //...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./bazel-out/_coverage/_coverage_report.dat
flags: unittests
fail_ci_if_error: true
verbose: true