Skip to content

chore:增加单测覆盖率action #1

chore:增加单测覆盖率action

chore:增加单测覆盖率action #1

Workflow file for this run

name: Unit test coverage
on: [push, pull_request]
jobs:
check:
name: Rust project
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: "0.26.1"
args: "-- --test-threads 1"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml