-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.97 KB
/
test_with_iceberg.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Test with Iceberg
on:
workflow_dispatch:
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
# Checkout the repo as this CI needs:
# - the compose file for StarRocks and Ginkgo/Gomega
- name: Checkout Test repo
uses: actions/checkout@v4
with:
path: testing
- name: Checkout Demo repo
uses: actions/checkout@v4
with:
repository: StarRocks/demo
path: demo
- name: Set up Golang
uses: actions/setup-go@v5
with:
go-version-file: 'testing/ci/go.mod'
- name: Install ginkgo
run: |
version=$(cat go.mod| grep "ginkgo/v2" | awk '{print $2}')
go install -v github.com/onsi/ginkgo/v2/ginkgo@$version
working-directory: ./testing/ci
- name: Start Iceberg, StarRocks, and MinIO
run: docker compose up --detach --wait --wait-timeout 60
working-directory: demo/documentation-samples/iceberg
- name: Copy dataset and script
run: |
docker compose cp datasets/green_tripdata_2023-05.parquet spark-iceberg:/opt/spark/
docker compose cp pyspark-example.py spark-iceberg:/opt/spark/
working-directory: demo/documentation-samples/iceberg
- name: Run PySpark job
run: docker compose exec spark-iceberg python pyspark-example.py
working-directory: demo/documentation-samples/iceberg
# Any tests that will run against the StarRocks env would be
# launched in steps like this one. Make sure to reset the
# StarRocks environment after each run (remove any tables
# and databases created, and reset any settings to the default)
#
# The ginkgo command uses `--focus-file` to run only the one test
# file.
- name: Test; Iceberg SQL test
if: always()
env:
SR_FE_HOST: 'localhost'
run: ginkgo -v --focus-file=./quickstart_iceberg_test.go
working-directory: testing/ci