Background StarRocks, foreground Ginkgo #23
This file contains 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: Test the docs | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
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 | |
# These two compose steps will deploy StarRocks and | |
# the test harness (Golang/Ginkgo/Gomega) | |
# in Docker using the compose file in this repo | |
# docker compose will return when all services | |
# are healthy. The max time docker compose will | |
# wait is 60 seconds. | |
# The secrets for Amazon S3 are used to retrieve | |
# datasets. | |
- name: Start StarRocks | |
run: docker compose --profile starrocks up --detach --wait --wait-timeout 60 | |
- name: Run Tests | |
env: | |
AWS_S3_ACCESS_KEY: ${{ secrets.AWS_S3_ACCESS_KEY }} | |
AWS_S3_SECRET_KEY: ${{ secrets.AWS_S3_SECRET_KEY }} | |
run: docker compose run test-harness |