Skip to content

License

License #2

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust.yml

Invalid workflow file

(Line: 46, Col: 15): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.rust
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy (Lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
# -D warnings makes lint warnings fail CI (fixes Issue #34)
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@${{ matrix.rust }}
- name: Run tests
run: cargo test --all-features --workspace
- name: Run doc tests
run: cargo test --doc --workspace