add secrets #3
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 | |
# - the Ginkgo/Gomega test system | |
- uses: actions/checkout@v3 | |
# This compose action will deploy StarRocks | |
# in Docker using the compose file in this repo | |
- name: Start StarRocks | |
uses: isbang/[email protected] | |
with: | |
compose-file: "./docker-compose.yml" | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: ginkgo -vv | |
env: | |
AWS_S3_ACCESS_KEY: ${{ secrets.AWS_S3_ACCESS_KEY }} | |
AWS_S3_SECRET_KEY: ${{ secrets.AWS_S3_SECRET_KEY }} |