Skip to content

test: add cov report #79

test: add cov report

test: add cov report #79

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request: {}
jobs:
check:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Check minimum
run: cargo check --all
- name: Check serde + use_alloc
run: cargo check --all --features serde1,use_alloc
- name: Check all
run: cargo check --all --all-features --all-targets
test:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Test all
run: cargo llvm-cov test --all --all-features --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true