| 1 | name: Test |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | env: |
| 6 | CARGO_INCREMENTAL: 0 |
| 7 | RUST_LOG: "debug" |
| 8 | DIFF: 0 |
| 9 | RUST_MIN_STACK: 4194304 |
| 10 | |
| 11 | jobs: |
| 12 | ci: |
| 13 | runs-on: ubuntu-latest |
| 14 | strategy: |
| 15 | matrix: |
| 16 | rust: |
| 17 | - stable |
| 18 | - beta |
| 19 | - nightly |
| 20 | - "1.56" |
| 21 | |
| 22 | steps: |
| 23 | - uses: actions/checkout@v3 |
| 24 | |
| 25 | - name: Install Rust |
| 26 | uses: actions-rs/toolchain@v1 |
| 27 | with: |
| 28 | profile: minimal |
| 29 | toolchain: ${{ matrix.rust }} |
| 30 | override: true |
| 31 | components: rustfmt, clippy |
| 32 | |
| 33 | - run: cargo check --color always --all --all-targets |
| 34 | - if: matrix.rust != '1.56' |
| 35 | run: cargo fmt --check --all |
| 36 | - run: cargo clippy --color always --all --all-targets |
| 37 | - run: cargo test --color always --all --all-targets |