forked from datafusion-contrib/datafusion-federation
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1.06 KB
/
integration-test.yml
File metadata and controls
43 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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