enable non-exhaustive on stable #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| RUSTFLAGS: "-Dwarnings" # Make sure CI fails on all warnings | |
| jobs: | |
| CI: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Run clippy | |
| run: cargo clippy | |
| - name: Run clippy with all features | |
| run: cargo clippy --all-features | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Run tests | |
| run: cargo test | |
| - name: Run tests with all features | |
| run: cargo test --all-features |