| 1 | name: CI |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | env: |
| 6 | CARGO_TERM_COLOR: always |
| 7 | |
| 8 | jobs: |
| 9 | test: |
| 10 | |
| 11 | runs-on: ubuntu-latest |
| 12 | |
| 13 | steps: |
| 14 | - uses: actions/checkout@v2 |
| 15 | - name: Run tests |
| 16 | run: cargo test |
| 17 | - name: Format |
| 18 | run: cargo fmt -- --check |
| 19 | - name: Linting |
| 20 | run: cargo clippy -- -D warnings |
| 21 | - name: Audit |
| 22 | run: | |
| 23 | cargo update |
| 24 | cargo audit |
| 25 | # Allowed to fail but this will notify us that some dependency might need an update. |
| 26 | continue-on-error: true |