@@ -21,20 +21,44 @@ permissions:
21
21
contents : read
22
22
23
23
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
29
24
30
- run-tests :
25
+ deploy-core-stack :
31
26
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
34
30
steps :
35
31
- name : Checkout code
36
32
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
37
33
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
+
38
62
- name : Set up .NET
39
63
uses : actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
40
64
with :
@@ -44,10 +68,28 @@ jobs:
44
68
run : |
45
69
cd libraries/tests/e2e/functions/core
46
70
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
47
89
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
51
93
52
94
# destroy-core-stack:
53
95
# needs: run-tests
0 commit comments