Skip to content

Coverage

Coverage #1

Workflow file for this run

on:
push:
branches:
- main
paths:
- "src/**"
- "tests/**"
- "scripts/**"
- "proto/**"
workflow_dispatch:
name: Coverage
jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Prerequisites
run: sh ./install.sh
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: '0.19.1'
args: '-- --test-threads 1'
- name: Upload to codecov.io
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml