Skip to content

Commit 57ab34e

Browse files
Merge pull request #691 from aws-powertools/hjgraca-patch-e2e-6
chore: Update e2e-tests.yml
2 parents b6ed800 + e1ab9c0 commit 57ab34e

File tree

1 file changed

+53
-11
lines changed

1 file changed

+53
-11
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,44 @@ permissions:
2121
contents: read
2222

2323
jobs:
24-
deploy-core-stack:
25-
uses: ./.github/workflows/e2e-infra-deploy.yml
26-
27-
deploy-aot-stack:
28-
uses: ./.github/workflows/e2e-infra-deploy.yml
2924

30-
run-tests:
25+
deploy-core-stack:
3126
runs-on: aws-powertools_ubuntu-latest_8-core
32-
# needs: [deploy-core-stack, deploy-aot-stack]
33-
needs: [deploy-core-stack]
27+
permissions:
28+
id-token: write
29+
contents: read
3430
steps:
3531
- name: Checkout code
3632
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
3733

34+
- name: Configure AWS credentials
35+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
36+
with:
37+
role-to-assume: ${{ secrets.E2E_DEPLOY_ROLE }}
38+
aws-region: us-east-1
39+
mask-aws-account-id: true
40+
41+
- name: Set up .NET
42+
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
43+
with:
44+
dotnet-version: '8.x'
45+
46+
- name: Setup Node.js
47+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
48+
with:
49+
node-version: "20.10.0"
50+
51+
- name: Install CDK
52+
run: npm install -g aws-cdk
53+
54+
- name: Deploy Core Stack
55+
run: |
56+
cd libraries/tests/e2e/infra
57+
cdk deploy --require-approval never
58+
59+
- name: Checkout code
60+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
61+
3862
- name: Set up .NET
3963
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
4064
with:
@@ -44,10 +68,28 @@ jobs:
4468
run: |
4569
cd libraries/tests/e2e/functions/core
4670
dotnet test
71+
72+
# run-tests:
73+
# runs-on: aws-powertools_ubuntu-latest_8-core
74+
# # needs: [deploy-core-stack, deploy-aot-stack]
75+
# # needs: [deploy-core-stack]
76+
# steps:
77+
# - name: Checkout code
78+
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
79+
80+
# - name: Set up .NET
81+
# uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
82+
# with:
83+
# dotnet-version: '8.x'
84+
85+
# - name: Run Core Tests
86+
# run: |
87+
# cd libraries/tests/e2e/functions/core
88+
# dotnet test
4789

48-
- name: Destroy Core Stack
49-
if: always()
50-
uses: ./.github/workflows/e2e-infra-destroy.yml
90+
# - name: Destroy Core Stack
91+
# if: always()
92+
# uses: ./.github/workflows/e2e-infra-destroy.yml
5193

5294
# destroy-core-stack:
5395
# needs: run-tests

0 commit comments

Comments
 (0)