ci: bump actions/checkout from 4 to 7 #11
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: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| build-test: | |
| name: fmt · clippy · unit + proptest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all -- --check | |
| - name: Clippy (deny warnings) | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Unit tests + property-based round-trip fuzzing | |
| run: cargo test --workspace --all-features | |
| e2e: | |
| name: SQLLogic e2e (haybarn) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install the haybarn unittest runner | |
| # Only `haybarn-unittest` is installed as a tool; `haybarn-cli` (used to | |
| # install the vgi extension) is fetched on demand by `uvx` in run_tests.sh. | |
| run: | | |
| uv tool install haybarn-unittest | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Install the vgi community extension | |
| run: echo "INSTALL vgi FROM community;" | uvx haybarn-cli | |
| - name: Run SQLLogic suite against the built worker | |
| run: ./run_tests.sh | |
| metadata-quality: | |
| name: metadata quality (vgi-lint) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build worker (release) | |
| run: cargo build --release --bin fixedformat-worker | |
| - name: vgi-lint | |
| uses: Query-farm/vgi-lint-check@v1 | |
| with: | |
| version: "0.37.0" | |
| location: "${{ github.workspace }}/target/release/fixedformat-worker" | |
| fail-on: info |