Skip to content

Commit

Permalink
ci: Fix release integration tests (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Apr 30, 2024
1 parent e2491ac commit 6631cd4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ on:
- 'false'

workflow_call:
inputs:
run-v1:
description: 'Run tests against Firebolt DB v1'
required: true
default: true
type: boolean
run-v2:
description: 'Run tests against Firebolt DB v2'
required: true
default: true
type: boolean
run-database-with-engine-v2:
description: 'Run tests against Firebolt DB v2 and Engine V2'
required: true
default: true
type: boolean
secrets:
# V1 secrets
FIREBOLT_STG_USERNAME:
Expand All @@ -42,14 +58,14 @@ on:

jobs:
integration-test-v1:
if: ${{ inputs.run-v1 == 'true' }}
if: ${{ (inputs.run-v1 == 'true') || (inputs.run-v1 == true) }}
uses: ./.github/workflows/integration-tests-v1.yml
secrets:
FIREBOLT_STG_USERNAME: ${{ secrets.FIREBOLT_STG_USERNAME }}
FIREBOLT_STG_PASSWORD: ${{ secrets.FIREBOLT_STG_PASSWORD }}

integration-test-v2:
if: ${{ inputs.run-v2 == 'true' }}
if: ${{ (inputs.run-v2 == 'true') || (inputs.run-v2 == true) }}
uses: ./.github/workflows/integration-tests-v2.yml
with:
account: ${{ vars.FIREBOLT_ACCOUNT_V1 }}
Expand All @@ -59,7 +75,7 @@ jobs:
FIREBOLT_CLIENT_SECRET_STG_NEW_IDN: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}

integration-test-engine-v2:
if: ${{ inputs.run-database-with-engine-v2 == 'true' }}
if: ${{ (inputs.run-database-with-engine-v2 == 'true') || (inputs.run-database-with-engine-v2 == 'true') }}
uses: ./.github/workflows/integration-tests-v2.yml
with:
account: ${{ vars.FIREBOLT_ACCOUNT_V2 }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
integration-tests:
uses: ./.github/workflows/integration-tests.yml
secrets: inherit
with:
run-v1: true
run-v2: true
run-database-with-engine-v2: true

publish:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6631cd4

Please sign in to comment.