name: Test
on:
push:
branches:
- "*"
pull_request:
types: ["opened", "reopened", "synchronize"]
env:
CARGO_INCREMENTAL: 0
RUST_LOG: "debug"
DIFF: 0
RUST_MIN_STACK: 4194304
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
- "1.85"
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- run: cargo check --color always --all --all-targets
- if: matrix.rust != '1.85'
run: cargo fmt --check --all
- run: cargo clippy --color always --all --all-targets
- run: cargo test --color always --all --all-targets