@@ -21,18 +21,14 @@ permissions:
21
21
contents : read
22
22
23
23
jobs :
24
-
25
- deploy-core-stack :
26
- runs-on : aws-powertools_ubuntu-latest_8-core
27
- permissions :
28
- id-token : write
29
- contents : read
24
+ deploy-stack :
25
+ runs-on : ubuntu-latest
30
26
steps :
31
27
- name : Checkout code
32
28
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
33
29
34
30
- name : Configure AWS credentials
35
- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
31
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
36
32
with :
37
33
role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
38
34
aws-region : us-east-1
@@ -42,23 +38,77 @@ jobs:
42
38
uses : actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
43
39
with :
44
40
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
-
41
+
51
42
- name : Install CDK
52
43
run : npm install -g aws-cdk
53
44
45
+ - name : Install AWS Lambda .NET CLI Tools
46
+ run : dotnet tool install -g Amazon.Lambda.Tools
47
+
54
48
- name : Deploy Core Stack
55
49
run : |
56
50
cd libraries/tests/e2e/infra
57
51
cdk deploy --require-approval never
58
52
53
+ # deploy-aot-stack:
54
+ # runs-on: ubuntu-latest
55
+ # strategy:
56
+ # fail-fast: false
57
+ # matrix:
58
+ # architecture: [ x86_64, arm64 ]
59
+ # steps:
60
+ # - name: Checkout code
61
+ # uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
62
+ #
63
+ # - name: Configure AWS credentials
64
+ # uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
65
+ # with:
66
+ # role-to-assume: ${{ secrets.E2E_DEPLOY_ROLE }}
67
+ # aws-region: us-east-1
68
+ #
69
+ # - name: Set up .NET
70
+ # uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
71
+ # with:
72
+ # dotnet-version: '8.x'
73
+ #
74
+ # - name: Install CDK
75
+ # run: npm install -g aws-cdk
76
+ #
77
+ # - name: Install AWS Lambda .NET CLI Tools
78
+ # run: dotnet tool install -g Amazon.Lambda.Tools
79
+ #
80
+ # - name: Set up QEMU
81
+ # uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a
82
+ # with:
83
+ # platforms: ${{ matrix.architecture }}
84
+ #
85
+ # - name: Set up Docker Buildx
86
+ # id: builder
87
+ # uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
88
+ # with:
89
+ # install: true
90
+ # driver: docker
91
+ # platforms: linux/amd64,linux/arm64
92
+ #
93
+ # - name: Deploy AOT Stack
94
+ # run: |
95
+ # cd libraries/tests/e2e/infra-aot
96
+ # cdk deploy -c architecture=${{ matrix.architecture }} --require-approval never
97
+
98
+ run-tests :
99
+ runs-on : ubuntu-latest
100
+ needs : deploy-stack
101
+ steps :
59
102
- name : Checkout code
60
103
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
61
104
105
+ - name : Configure AWS credentials
106
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
107
+ with :
108
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
109
+ aws-region : us-east-1
110
+ mask-aws-account-id : true
111
+
62
112
- name : Set up .NET
63
113
uses : actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
64
114
with :
@@ -69,28 +119,71 @@ jobs:
69
119
cd libraries/tests/e2e/functions/core
70
120
dotnet test
71
121
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
89
-
90
- # - name: Destroy Core Stack
91
- # if: always()
92
- # uses: ./.github/workflows/e2e-infra-destroy.yml
93
-
94
- # destroy-core-stack:
122
+ destroy-stack :
123
+ runs-on : ubuntu-latest
124
+ needs : run-tests
125
+ if : always()
126
+ steps :
127
+ - name : Checkout code
128
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
129
+
130
+ - name : Configure AWS credentials
131
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
132
+ with :
133
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
134
+ aws-region : us-east-1
135
+ mask-aws-account-id : true
136
+
137
+ - name : Install CDK
138
+ run : npm install -g aws-cdk
139
+
140
+ - name : Install AWS Lambda .NET CLI Tools
141
+ run : dotnet tool install -g Amazon.Lambda.Tools
142
+
143
+ - name : Destroy Core Stack
144
+ run : |
145
+ cd libraries/tests/e2e/infra
146
+ cdk destroy --force
147
+
148
+ # destroy-aot-stack:
149
+ # runs-on: ubuntu-latest
95
150
# needs: run-tests
96
- # uses: ./.github/workflows/e2e-infra-destroy.yml
151
+ # if: always()
152
+ # strategy:
153
+ # fail-fast: false
154
+ # matrix:
155
+ # architecture: [ x86_64, arm64 ]
156
+ # steps:
157
+ # - name: Checkout code
158
+ # uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
159
+ #
160
+ # - name: Configure AWS credentials
161
+ # uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
162
+ # with:
163
+ # role-to-assume: ${{ secrets.E2E_DEPLOY_ROLE }}
164
+ # aws-region: us-east-1
165
+ # mask-aws-account-id: true
166
+ #
167
+ # - name: Install CDK
168
+ # run: npm install -g aws-cdk
169
+ #
170
+ # - name: Install AWS Lambda .NET CLI Tools
171
+ # run: dotnet tool install -g Amazon.Lambda.Tools
172
+ #
173
+ # - name: Set up QEMU
174
+ # uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a
175
+ # with:
176
+ # platforms: ${{ matrix.architecture }}
177
+ #
178
+ # - name: Set up Docker Buildx
179
+ # id: builder
180
+ # uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
181
+ # with:
182
+ # install: true
183
+ # driver: docker
184
+ # platforms: linux/amd64,linux/arm64
185
+ #
186
+ # - name: Destroy Core AOT Stack
187
+ # run: |
188
+ # cd libraries/tests/e2e/infra-aot
189
+ # cdk destroy -c architecture=${{ matrix.architecture }} --force
0 commit comments