-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (64 loc) · 2.4 KB
/
test_with_shared_data.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
64
65
66
67
68
69
70
71
72
73
74
name: Test with Shared Data
on:
schedule:
- cron: "5 9 * * 1"
push:
branches: [ main ]
paths:
- 'ci/**/quickstart/shared_data/*'
- '.github/workflows/test_with_shared_data.yml'
- 'quickstart_shared_data_test.go'
- 'helper.go'
pull_request:
branches: [ main ]
paths:
- 'ci/**/quickstart/shared_data/*'
- '.github/workflows/test_with_shared_data.yml'
- 'quickstart_shared_data_test.go'
- 'helper.go'
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
# Build the test harness container (Golnag/Ginkgo/Gomega)
- name: Build Ginkgo container
run: docker compose -f test-harness-docker-compose.yml build
#- 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 StarRocks and MinIO
run: |
curl -o shared_data-compose.yml \
https://raw.githubusercontent.com/StarRocks/demo/master/documentation-samples/quickstart/docker-compose.yml
docker compose \
-f shared_data-compose.yml \
-f test-harness-docker-compose.yml \
up --detach --wait --wait-timeout 60
#working-directory: demo/documentation-samples/quickstart
# 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; Shared Data SQL test
run: docker compose -f test-harness-docker-compose.yml exec test-harness ginkgo -v --focus-file=./quickstart_shared_data_test.go