Fix ci.yml #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 | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| # Cancel in progress workflows if a new workflow is started for the same pull request | |
| cancel-in-progress: ${{github.event_name == 'pull_request'}} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v4 | |
| with: | |
| key: ${{ runner.os }}-stable-${{ hashFiles('**/Cargo.toml') }} | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Format Check | |
| run: cargo fmt --check | |
| - name: Clippy Check | |
| run: cargo clippy --locked --all-targets --all-features -- -D warnings | |
| - name: Test | |
| run: cargo test --locked --all-targets --all-features | |
| - name: Eure test suite | |
| run: cargo run -p test-suite --locked |