Skip to content

Convert coverage info #21

Convert coverage info

Convert coverage info #21

Workflow file for this run

name: bazel
on:
push:
jobs:
bazel:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- run: bazel coverage poly_map_test --test_output=all
- name: Coverage
run: |
sudo apt install -y lcov \
&& lcov --capture --directory $(bazel info bazel-testlogs)/poly_map_test/ --output-file coverage.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}