ci: add format-checking and linting #10
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: CI | ||
on: [push, pull_request] | ||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -Dwarnings | ||
jobs: | ||
build_and_test: | ||
name: Build & Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
toolchain: [stable, beta, nightly] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: extractions/setup-just@v2 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
- run: just test | ||
- run: just bench | ||
format_and_lint: | ||
name: Format & Lint | ||
run-on: ubuntu-latest | ||
Check failure on line 30 in .github/workflows/ci.yml
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: extractions/setup-just@v2 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: just lint | ||
- run: just annoy |