Skip to content

Test loading from S3 docs #21

Test loading from S3 docs

Test loading from S3 docs #21

Workflow file for this run

name: Test loading from S3 docs
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
- uses: actions/checkout@v3
# Build the test harness container (Golnag/Ginkgo/Gomega)
- name: Build Ginkgo container
run: docker compose -f general-compose.yml build
- name: Start StarRocks
run: docker compose -f general-compose.yml up --detach --wait --wait-timeout 60
# 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; Loading from S3
if: always()
run: |
docker compose -f general-compose.yml exec \
-e SR_FE_HOST='starrocks-fe' \
-e AWS_S3_ACCESS_KEY=${{ secrets.AWS_S3_ACCESS_KEY }} \
-e AWS_S3_SECRET_KEY=${{ secrets.AWS_S3_SECRET_KEY }} \
test-harness ginkgo -v \
--focus-file=./loading_s3_test.go