| 1 | name: Rust |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | |
| 7 | env: |
| 8 | CARGO_TERM_COLOR: always |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | name: Rust ${{matrix.rust}} |
| 13 | strategy: |
| 14 | fail-fast: false |
| 15 | matrix: |
| 16 | rust: [stable, 1.68.0] |
| 17 | |
| 18 | runs-on: ubuntu-latest |
| 19 | |
| 20 | steps: |
| 21 | - uses: actions/checkout@v3 |
| 22 | - uses: dtolnay/rust-toolchain@master |
| 23 | with: |
| 24 | toolchain: ${{matrix.rust}} |
| 25 | components: rustfmt |
| 26 | - name: Check bootstrap |
| 27 | run: ./bootstrap.sh && git diff --exit-code |
| 28 | - name: Run tests |
| 29 | run: cargo test --all |
| 30 | - name: Run tests with trace feature |
| 31 | run: cargo test --all --features trace |