Skip to content

Integration tests V1 #1

Integration tests V1

Integration tests V1 #1

name: Integration tests V1
on:
workflow_dispatch:
workflow_call:
secrets:
FIREBOLT_STG_USERNAME:
required: false
FIREBOLT_STG_PASSWORD:
required: false
SERVICE_ID_STG:
required: false
SERVICE_SECRET_STG:
required: false
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19.0'
- name: Setup database and engine
id: setup
uses: firebolt-db/integration-testing-setup@v1
with:
firebolt-username: ${{ secrets.FIREBOLT_STG_USERNAME }}
firebolt-password: ${{ secrets.FIREBOLT_STG_PASSWORD }}
api-endpoint: "api.staging.firebolt.io"
region: "us-east-1"
instance-type: "B2"
- name: Run integration tests
env:
USER_NAME: ${{ secrets.FIREBOLT_STG_USERNAME }}
PASSWORD: ${{ secrets.FIREBOLT_STG_PASSWORD }}
DATABASE_NAME: ${{ steps.setup.outputs.database_name }}
ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
ENGINE_URL: ${{ steps.setup.outputs.engine_url }}
STOPPED_ENGINE_NAME: ${{ steps.setup.outputs.stopped_engine_name }}
STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }}
FIREBOLT_ENDPOINT: "api.staging.firebolt.io"
ACCOUNT_NAME: "firebolt"
SERVICE_ACCOUNT_CLIENT_ID: ${{ secrets.SERVICE_ID_STG }}
SERVICE_ACCOUNT_CLIENT_SECRET: ${{ secrets.SERVICE_SECRET_STG }}
run: |
go test . -timeout=30m -v --tags=integration_v0