Skip to content

coverage

coverage #1460

Workflow file for this run

# Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
name: coverage
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'docs/**'
- 'etc/**'
- '**.md'
- '.dockerignore'
- 'docker/**'
schedule:
- cron: '14 1/3 * * *'
# Common environment variables
env:
RUSTFLAGS: "-C debuginfo=1"
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "1"
RUST_VERSION: nightly-2023-02-02
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Rust toolchain
run: |
rustup toolchain install ${{ env.RUST_VERSION }}
- name: Release Disk Quota
run: |
sudo rm -rf /usr/local/lib/android # release about 10 GB
sudo rm -rf /usr/share/dotnet # release about 20GB
- name: Ensure Disk Quota
run: |
make ensure-disk-quota
- name: Setup Build Environment
run: |
sudo apt update
sudo apt install --yes protobuf-compiler
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov --version=0.5.9
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Report coverage
continue-on-error: true
run: bash <(curl -s https://codecov.io/bash)