Skip to content

Commit

Permalink
ci: Fix integration test input (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Jan 17, 2023
1 parent d9b3b6e commit fe34bbd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: '1.19.0'

- name: Determine env variables
run: |
if [ "${{ github.event.inputs.environment }}" == 'staging' ]; then
if [ "${{ inputs.environment }}" == 'staging' ]; then
echo "USERNAME=${{ secrets.FIREBOLT_USERNAME_STAGING }}" >> "$GITHUB_ENV"
echo "PASSWORD=${{ secrets.FIREBOLT_PASSWORD_STAGING }}" >> "$GITHUB_ENV"
echo "CLIENT_ID=${{ secrets.FIREBOLT_CLIENT_ID_STAGING }}" >> "$GITHUB_ENV"
Expand All @@ -58,15 +59,17 @@ jobs:
echo "CLIENT_ID=${{ secrets.FIREBOLT_CLIENT_ID_DEV }}" >> "$GITHUB_ENV"
echo "CLIENT_SECRET=${{ secrets.FIREBOLT_CLIENT_SECRET_DEV }}" >> "$GITHUB_ENV"
fi
- name: Keep environment name in the summary
run: echo '### Ran integration tests against ${{ github.event.inputs.environment }} ' >> $GITHUB_STEP_SUMMARY
run: echo '### Ran integration tests against ${{ inputs.environment }} ' >> $GITHUB_STEP_SUMMARY

- name: Setup database and engine
id: setup
uses: firebolt-db/integration-testing-setup@master
with:
firebolt-username: ${{ env.USERNAME }}
firebolt-password: ${{ env.PASSWORD }}
api-endpoint: "api.${{ github.event.inputs.environment }}.firebolt.io"
api-endpoint: "api.${{ inputs.environment }}.firebolt.io"
region: "us-east-1"
instance-type: "B2"

Expand All @@ -79,7 +82,7 @@ jobs:
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.${{ github.event.inputs.environment }}.firebolt.io"
FIREBOLT_ENDPOINT: "api.${{ inputs.environment }}.firebolt.io"
ACCOUNT_NAME: "firebolt"
SERVICE_ACCOUNT_CLIENT_ID: ${{ env.CLIENT_ID }}
SERVICE_ACCOUNT_CLIENT_SECRET: ${{ env.CLIENT_SECRET }}
Expand Down

0 comments on commit fe34bbd

Please sign in to comment.