refactor: move lints to Cargo.toml
, adapt benchmark code
#79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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: "--exclude-files src/lib.rs" | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 |