11# PROCESS
22#
3- # 1. Deploy the core and AOT stacks using the infra deployment workflow.
3+ # 1. Deploy the E2E stacks using the infra deployment workflow for non-aot and aot .
44# 2. Run the E2E tests after the infrastructure is deployed.
55# 3. Destroy the CDK stacks after the tests are completed.
66
@@ -33,14 +33,14 @@ jobs:
3333 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3434
3535 - name : Configure AWS credentials
36- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
36+ uses : aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
3737 with :
3838 role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
3939 aws-region : us-east-1
4040 mask-aws-account-id : true
4141
4242 - name : Set up .NET
43- uses : actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # 4.2 .0
43+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # 4.3 .0
4444 with :
4545 dotnet-version : ' 8.x'
4646
@@ -50,10 +50,10 @@ jobs:
5050 - name : Install AWS Lambda .NET CLI Tools
5151 run : dotnet tool install -g Amazon.Lambda.Tools
5252
53- - name : Deploy Core Stack
53+ - name : Deploy Stack
5454 run : |
5555 cd libraries/tests/e2e/infra
56- cdk deploy --require-approval never
56+ cdk deploy --all -- require-approval never
5757
5858 deploy-aot-stack :
5959 strategy :
@@ -70,14 +70,14 @@ jobs:
7070 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
7171
7272 - name : Configure AWS credentials
73- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
73+ uses : aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
7474 with :
7575 role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
7676 aws-region : us-east-1
7777 mask-aws-account-id : true
7878
7979 - name : Set up .NET
80- uses : actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # 4.2 .0
80+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # 4.3 .0
8181 with :
8282 dotnet-version : ' 8.x'
8383
@@ -90,35 +90,39 @@ jobs:
9090 - name : Deploy AOT Stack
9191 run : |
9292 cd libraries/tests/e2e/infra-aot
93- cdk deploy -c architecture=${{ matrix.arch }} --require-approval never
93+ cdk deploy --all - c architecture=${{ matrix.arch }} --require-approval never
9494
9595 run-tests :
96+ strategy :
97+ matrix :
98+ utility : [core, idempotency]
9699 runs-on : ubuntu-latest
97100 needs : [deploy-stack,deploy-aot-stack]
101+
98102 steps :
99103 - name : Checkout code
100104 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
101105
102106 - name : Configure AWS credentials
103- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
107+ uses : aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
104108 with :
105109 role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
106110 aws-region : us-east-1
107111 mask-aws-account-id : true
108112
109113 - name : Set up .NET
110- uses : actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # 4.2 .0
114+ uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # 4.3 .0
111115 with :
112116 dotnet-version : ' 8.x'
113117
114- - name : Run Core Tests
118+ - name : Run Tests
115119 run : |
116- cd libraries/tests/e2e/functions/core
120+ cd libraries/tests/e2e/functions/${{ matrix.utility }}
117121 dotnet test --filter Category!=AOT
118122
119- - name : Run Core AOT Tests
123+ - name : Run AOT Tests
120124 run : |
121- cd libraries/tests/e2e/functions/core
125+ cd libraries/tests/e2e/functions/${{ matrix.utility }}
122126 dotnet test --filter Category=AOT
123127
124128 destroy-stack :
@@ -130,7 +134,7 @@ jobs:
130134 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
131135
132136 - name : Configure AWS credentials
133- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
137+ uses : aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
134138 with :
135139 role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
136140 aws-region : us-east-1
@@ -142,10 +146,10 @@ jobs:
142146 - name : Install AWS Lambda .NET CLI Tools
143147 run : dotnet tool install -g Amazon.Lambda.Tools
144148
145- - name : Destroy Core Stack
149+ - name : Destroy Stack
146150 run : |
147151 cd libraries/tests/e2e/infra
148- cdk destroy --force
152+ cdk destroy --all -- force
149153
150154 destroy-aot-stack :
151155 strategy :
@@ -164,7 +168,7 @@ jobs:
164168 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
165169
166170 - name : Configure AWS credentials
167- uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
171+ uses : aws-actions/configure-aws-credentials@4fc4975a852c8cd99761e2de1f4ba73402e44dd9 # v4.0.3
168172 with :
169173 role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
170174 aws-region : us-east-1
@@ -176,8 +180,8 @@ jobs:
176180 - name : Install AWS Lambda .NET CLI Tools
177181 run : dotnet tool install -g Amazon.Lambda.Tools
178182
179- - name : Destroy arm64 AOT Core Stack
183+ - name : Destroy arm64 AOT Stack
180184 run : |
181185 cd libraries/tests/e2e/infra-aot
182- cdk destroy -c architecture=${{ matrix.arch }} --force
186+ cdk destroy --all - c architecture=${{ matrix.arch }} --force
183187
0 commit comments