| 1 | name: Tests |
| 2 | |
| 3 | on: [push] |
| 4 | |
| 5 | jobs: |
| 6 | test-latest: |
| 7 | name: Test on Latest |
| 8 | runs-on: ubuntu-latest |
| 9 | |
| 10 | steps: |
| 11 | - uses: actions/checkout@v4 |
| 12 | - uses: dtolnay/rust-toolchain@master |
| 13 | with: |
| 14 | toolchain: stable |
| 15 | - uses: Swatinem/rust-cache@v2 |
| 16 | - name: Test |
| 17 | run: make test |
| 18 | |
| 19 | test-windows-latest: |
| 20 | name: Build on Latest (Windows) |
| 21 | runs-on: windows-2019 |
| 22 | |
| 23 | steps: |
| 24 | - uses: actions/checkout@v4 |
| 25 | - uses: dtolnay/rust-toolchain@master |
| 26 | with: |
| 27 | toolchain: stable |
| 28 | - uses: Swatinem/rust-cache@v2 |
| 29 | - name: Build |
| 30 | run: cargo check |
| 31 | |
| 32 | test-stable: |
| 33 | name: Build on 1.42.0 |
| 34 | runs-on: ubuntu-latest |
| 35 | |
| 36 | steps: |
| 37 | - uses: actions/checkout@v4 |
| 38 | - uses: dtolnay/rust-toolchain@master |
| 39 | with: |
| 40 | toolchain: 1.42.0 |
| 41 | - uses: Swatinem/rust-cache@v2 |
| 42 | - name: Restore Cargo.lock |
| 43 | run: cp Cargo.lock.msrv Cargo.lock |
| 44 | - name: Build |
| 45 | run: cargo check |