| 1 | name: CI |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | branches: |
| 6 | - master |
| 7 | push: |
| 8 | branches: |
| 9 | - master |
| 10 | |
| 11 | env: |
| 12 | CARGO_TERM_COLOR: always |
| 13 | RUST_BACKTRACE: 1 |
| 14 | RUSTFLAGS: -Dwarnings |
| 15 | |
| 16 | jobs: |
| 17 | check-test: |
| 18 | runs-on: ubuntu-latest |
| 19 | steps: |
| 20 | - uses: actions/checkout@v3 |
| 21 | |
| 22 | - name: "Install minimal stable with clippy" |
| 23 | uses: actions-rs/toolchain@v1 |
| 24 | with: |
| 25 | profile: minimal |
| 26 | toolchain: stable |
| 27 | components: clippy |
| 28 | |
| 29 | - name: "Clippy" |
| 30 | uses: actions-rs/cargo@v1 |
| 31 | with: |
| 32 | command: clippy |
| 33 | args: --all-targets |
| 34 | |
| 35 | - name: "Test" |
| 36 | uses: actions-rs/cargo@v1 |
| 37 | with: |
| 38 | command: test |
| 39 | args: --tests --benches --examples |