Skip to content

Add coverage badge

Add coverage badge #43

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
env:
RUST_BACKTRACE: 1
jobs:
test:
name: Test ${{ matrix.rust-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
rust-version:
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt, clippy
- name: Install tarpaulin
run: cargo install cargo-tarpaulin
- name: Test compilation
run: cargo check --all --all-targets
- name: Test formatting
run: cargo fmt --all -- --check
- name: Test clippy
run: cargo clippy --all --all-targets -- -D warnings
- name: Test documentation
run: cargo doc --all --no-deps
- name: Test with code coverage
run: cargo tarpaulin --release --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}