Skip to content

chore: add coverage step #28

chore: add coverage step

chore: add coverage step #28

Workflow file for this run

name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Run clippy
run: cargo clippy --verbose
- name: Check formatting
run: cargo fmt --check --verbose
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose
- name: Generate documentation
run: cargo doc --verbose
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: "0.15.0"
args: "-- --test-threads 1"
- name: Upload to codecov.io
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}