Skip to content

Commit

Permalink
merge aws iam user configuration into the integration tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 22, 2024
1 parent 2dd1a2e commit fb2b0ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 259 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dev-branch-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ jobs:
REDSHIFT_TEST_DBNAME: ${{ vars.REDSHIFT_TEST_DBNAME }}
REDSHIFT_TEST_USER: ${{ vars.REDSHIFT_TEST_USER }}
REDSHIFT_TEST_PASS: ${{ secrets.REDSHIFT_TEST_PASS }}
REDSHIFT_TEST_CLUSTER_ID: ${{ vars.REDSHIFT_TEST_CLUSTER_ID }}
REDSHIFT_TEST_IAM_PROFILE: ${{ vars.REDSHIFT_TEST_IAM_PROFILE }}
REDSHIFT_TEST_ACCESS_KEY_ID: ${{ vars.REDSHIFT_TEST_ACCESS_KEY_ID }}
REDSHIFT_TEST_SECRET_ACCESS_KEY: ${{ secrets.REDSHIFT_TEST_SECRET_ACCESS_KEY }}
REDSHIFT_TEST_REGION: ${{ vars.REDSHIFT_TEST_REGION }}
DBT_TEST_USER_1: ${{ vars.REDSHIFT_TEST_USER_1 }}
DBT_TEST_USER_2: ${{ vars.REDSHIFT_TEST_USER_2 }}
DBT_TEST_USER_3: ${{ vars.REDSHIFT_TEST_USER_3 }}
Expand Down Expand Up @@ -104,6 +109,13 @@ jobs:
dbt-common-branch: ${{ inputs.dbt-common-branch }}
dbt-core-branch: ${{ inputs.dbt-core-branch }}

- name: Create AWS IAM profile
run: |
aws configure set aws_access_key_id $REDSHIFT_TEST_ACCESS_KEY_ID
aws configure set aws_secret_access_key $REDSHIFT_TEST_SECRET_ACCESS_KEY
aws configure set region $REDSHIFT_TEST_REGION
aws configure set output json
- name: "Run integration tests"
shell: bash
run: hatch run integration-tests:all
Expand Down
259 changes: 0 additions & 259 deletions .github/workflows/integration.yml

This file was deleted.

0 comments on commit fb2b0ba

Please sign in to comment.