| 1 | on: [push, pull_request] |
| 2 | |
| 3 | name: Continuous integration |
| 4 | |
| 5 | jobs: |
| 6 | check: |
| 7 | name: Check |
| 8 | runs-on: ubuntu-latest |
| 9 | strategy: |
| 10 | matrix: |
| 11 | rust: |
| 12 | - stable |
| 13 | - 1.45.0 |
| 14 | steps: |
| 15 | - uses: actions/checkout@v2 |
| 16 | - uses: actions-rs/toolchain@v1 |
| 17 | with: |
| 18 | profile: minimal |
| 19 | toolchain: ${{ matrix.rust }} |
| 20 | override: true |
| 21 | - uses: actions-rs/cargo@v1 |
| 22 | with: |
| 23 | command: check |
| 24 | args: --all |
| 25 | |
| 26 | test: |
| 27 | name: Test Suite |
| 28 | runs-on: ubuntu-latest |
| 29 | strategy: |
| 30 | matrix: |
| 31 | rust: |
| 32 | - stable |
| 33 | - 1.45.0 |
| 34 | steps: |
| 35 | - uses: actions/checkout@v2 |
| 36 | - uses: actions-rs/toolchain@v1 |
| 37 | with: |
| 38 | profile: minimal |
| 39 | toolchain: ${{ matrix.rust }} |
| 40 | override: true |
| 41 | - uses: actions-rs/cargo@v1 |
| 42 | with: |
| 43 | command: test |
| 44 | args: --all |