| 1 | name: Rust Nightly |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | branches: [main] |
| 8 | |
| 9 | jobs: |
| 10 | check: |
| 11 | name: Check |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - uses: actions/checkout@v2 |
| 15 | - uses: actions-rs/toolchain@v1 |
| 16 | with: |
| 17 | toolchain: nightly |
| 18 | profile: minimal |
| 19 | override: true |
| 20 | components: rustfmt, clippy |
| 21 | - name: Check formatting |
| 22 | uses: actions-rs/cargo@v1 |
| 23 | with: |
| 24 | command: fmt |
| 25 | args: -- --check |
| 26 | - name: Catch common mistakes |
| 27 | uses: actions-rs/cargo@v1 |
| 28 | with: |
| 29 | command: clippy |
| 30 | args: --all-features --all-targets -- -D warnings |