ci: run cargo fmt in check mode #5
Workflow file for this run
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: Continuous integration | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| merge_group: | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| CARGO_INCREMENTAL: 0 # Speeds up the build (no cache) and reduces disk space! | |
| jobs: | |
| rustfmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out | |
| uses: actions/checkout@v4 | |
| - name: Running rustfmt | |
| run: cargo fmt --all --check | |
| check-clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out | |
| uses: actions/checkout@v4 | |
| - name: Running clippy | |
| run: cargo clippy --all --all-targets | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out | |
| uses: actions/checkout@v4 | |
| - name: Running tests | |
| run: cargo test --all --no-fail-fast |