1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
name: Test
on: [push, pull_request]
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.56"
steps:
- uses: actions/checkout@v3
- 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.56'
run: cargo fmt --check --all
- run: cargo clippy --color always --all --all-targets
- run: cargo test --color always --all --all-targets
|