Skip to content

Merge pull request #3 from x100111010/main #1

Merge pull request #3 from x100111010/main

Merge pull request #3 from x100111010/main #1

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
name: Test & Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test
- name: Run benchmarks
run: cargo bench
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --tests -- -D warnings