Skip to content

chore: clean up crates and coverage action #358

chore: clean up crates and coverage action

chore: clean up crates and coverage action #358

Workflow file for this run

name: CI
on:
pull_request:
merge_group:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: r7kamura/rust-problem-matchers@v1
- name: Check typos
uses: crate-ci/typos@master
- name: "Rustfmt"
run: cargo fmt --all --check
test:
name: Test
runs-on: ubuntu-latest
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: r7kamura/rust-problem-matchers@v1
- name: "Test"
run: cargo test --verbose --workspace --all-features
clippy:
name: Clippy
runs-on: ubuntu-latest
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
- uses: r7kamura/rust-problem-matchers@v1