test: datafusion-federation integration test workflow #4
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: Integration Tests | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| integration-test: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Setup protoc | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install DuckDB CLI | |
| run: | | |
| wget https://github.com/duckdb/duckdb/releases/download/v0.10.0/duckdb_cli-linux-amd64.zip | |
| unzip duckdb_cli-linux-amd64.zip | |
| chmod +x duckdb | |
| sudo mv duckdb /usr/local/bin/ | |
| - name: Generate TPC-H test database | |
| run: | | |
| duckdb tpch_sf1.db <<EOF | |
| INSTALL tpch; | |
| LOAD tpch; | |
| CALL dbgen(sf=1); | |
| .exit | |
| EOF | |
| # Verify the database was created properly | |
| ls -la tpch_sf1.db | |
| - name: Run integration tests | |
| run: cargo run -p federation-integration-tests -- --nocapture |