Skip to content

Commit

Permalink
Ability to Skip Acceptance Tests for Release (#1221)
Browse files Browse the repository at this point in the history
* Make testacc a dependency for prerelease

* Update prerelease workflow to add a skip input
  • Loading branch information
jasonpilz authored Feb 19, 2025
1 parent 7bac1fc commit a67430d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/_testacc_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}

AZURE_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
AZURE_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}

ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
run: |
AWS_OUTPUT=$(aws sts assume-role --role-arn $AWS_ROLE_ARN --role-session-name e2e-test --duration-seconds 43200)
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "Patch Release (default: Minor)"
type: boolean
default: false
testacc-skip:
description: "Skip Acceptance Tests"
type: boolean
default: false

concurrency:
group: prerelease
Expand All @@ -21,6 +25,7 @@ jobs:
secrets: inherit

testacc:
if: ${{ !inputs.testacc-skip }}
name: Run Acceptance Tests
uses: ./.github/workflows/testacc.yml
secrets: inherit
Expand Down

0 comments on commit a67430d

Please sign in to comment.