Skip to content

Commit 6f818a1

Browse files
committed
test: multi-region tests
1 parent 82b6df8 commit 6f818a1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: .github/workflows/run-e2e-tests.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
2222
contents: read
2323
strategy:
24-
max-parallel: 30
24+
# max-parallel: 30
2525
matrix:
2626
package:
2727
[
@@ -62,11 +62,18 @@ jobs:
6262
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
6363
with:
6464
nodeVersion: '22'
65+
- name: Round robin region
66+
id: round-robin-region
67+
run: |
68+
regions_available=(eu-west-1 us-east-1)
69+
region=${regions_available[$((RANDOM % ${#regions[@]}))]}
70+
# Set the region as an output variable
71+
echo "region=$region" >> $GITHUB_OUTPUT
6572
- name: Setup AWS credentials
6673
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
6774
with:
6875
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
69-
aws-region: eu-west-1
76+
aws-region: ${{ steps.round-robin-region.outputs.region }}
7077
mask-aws-account-id: true
7178
- name: Run integration tests on utils
7279
env:

0 commit comments

Comments
 (0)