Skip to content

Version 2.1.0

Version 2.1.0 #68

Workflow file for this run

name: CI
on: push
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for codecov
- name: Read from cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check for errors
run: cargo check
- name: Lint
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test -- --test-threads=1
- name: Generate test coverage
run: |
cargo install cargo-tarpaulin
cargo tarpaulin -- --test-threads=1
- name: Upload test coverage
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}