Skip to content

Commit

Permalink
Far away region test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirka Fajfr committed Oct 8, 2024
1 parent 4e95aaf commit 27b373d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Builds
description: Builds the repository and assumes the AWS IAM role for testing
inputs:
aws-region:
description: Region where the credentials will be assumed
required: false
default: us-east-1
runs:
using: composite
steps:
Expand All @@ -24,4 +29,4 @@ runs:
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ steps.role-to-assume.outputs.arn }}
aws-region: us-east-1
aws-region: ${{ inputs.aws-region }}
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,28 @@ jobs:
secret-ids: JsonSecret
- name: Assert Default Is No Json Secrets
run: npm run integration-test __integration_tests__/parse_json_secrets.test.ts

far-away-region-integration-test:
runs-on: ubuntu-latest
needs: unit-tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
with:
aws-region: af-south-1
- name: Act
uses: ./
with:
name-transformation: none
parse-json-secrets: true
secret-ids: |
SampleSecret1
/special/chars/secret
0/special/chars/secret
PrefixSecret*
JsonSecret
SampleSecret1_Alias, SampleSecret1
- name: Assert
run: npm run integration-test __integration_tests__/name_transformation/none.test.ts

0 comments on commit 27b373d

Please sign in to comment.