Skip to content

Commit

Permalink
back to if
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Jan 24, 2024
1 parent 3271c77 commit a9a8feb
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/integration-tests-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,22 @@ jobs:
python -m pip install --upgrade pip
pip install ".[dev]" --no-cache-dir
- name: Determine env variables
run: |
if [ "${{ inputs.environment }}" == 'staging' ]; then
echo "USERNAME=${{ secrets.FIREBOLT_USERNAME_STAGING }}" >> "$GITHUB_ENV"
echo "PASSWORD=${{ secrets.FIREBOLT_PASSWORD_STAGING }}" >> "$GITHUB_ENV"
else
echo "USERNAME=${{ secrets.FIREBOLT_USERNAME_DEV }}" >> "$GITHUB_ENV"
echo "PASSWORD=${{ secrets.FIREBOLT_PASSWORD_DEV }}" >> "$GITHUB_ENV"
fi
- name: Setup database and engine
id: setup
uses: firebolt-db/integration-testing-setup@fix-input-validation
with:
firebolt-username: ${{ secrets.FIREBOLT_STG_USERNAME }}
firebolt-password: ${{ secrets.FIREBOLT_STG_PASSWORD }}
firebolt-username: ${{ env.USERNAME }}
firebolt-password: ${{ env.PASSWORD }}
api-endpoint: "api.${{ inputs.environment }}.firebolt.io"
region: "us-east-1"

Expand All @@ -63,8 +73,8 @@ jobs:

- name: Run integration tests
env:
USER_NAME: ${{ secrets.FIREBOLT_STG_USERNAME }}
PASSWORD: '${{ secrets.FIREBOLT_STG_PASSWORD }}'
USER_NAME: ${{ env.USERNAME }}
PASSWORD: ${{ env.PASSWORD }}
DATABASE_NAME: ${{ steps.setup.outputs.database_name }}
ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
API_ENDPOINT: "api.${{ inputs.environment }}.firebolt.io"
Expand Down

0 comments on commit a9a8feb

Please sign in to comment.