| 1 | on: |
| 2 | pull_request: |
| 3 | push: |
| 4 | branches: [master] |
| 5 | |
| 6 | jobs: |
| 7 | build_test: |
| 8 | runs-on: ubuntu-latest |
| 9 | |
| 10 | steps: |
| 11 | - uses: actions/checkout@v2 |
| 12 | - name: Test (debug) |
| 13 | uses: actions-rs/cargo@v1 |
| 14 | with: |
| 15 | command: test |
| 16 | - name: Test (release) |
| 17 | uses: actions-rs/cargo@v1 |
| 18 | with: |
| 19 | command: test |
| 20 | args: --release |
| 21 | - name: Check rustfmt |
| 22 | uses: actions-rs/cargo@v1 |
| 23 | with: |
| 24 | command: fmt |
| 25 | args: -- --check |
| 26 | - name: Check clippy |
| 27 | uses: actions-rs/cargo@v1 |
| 28 | with: |
| 29 | command: clippy |
| 30 | args: --tests -- -Dwarnings |