Skip to content

ci: add format-checking and linting #10

ci: add format-checking and linting

ci: add format-checking and linting #10

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 30, Col: 5): Unexpected value 'run-on' .github/workflows/ci.yml (Line: 29, Col: 5): Required property is missing: runs-on
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