@@ -50,54 +50,37 @@ jobs:
50
50
cd libraries/tests/e2e/infra
51
51
cdk deploy --require-approval never
52
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
53
+ deploy-aot-stack :
54
+ runs-on : ubuntu-latest
55
+ steps :
56
+ - name : Checkout code
57
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
58
+
59
+ - name : Configure AWS credentials
60
+ uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
61
+ with :
62
+ role-to-assume : ${{ secrets.E2E_DEPLOY_ROLE }}
63
+ aws-region : us-east-1
64
+
65
+ - name : Set up .NET
66
+ uses : actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
67
+ with :
68
+ dotnet-version : ' 8.x'
69
+
70
+ - name : Install CDK
71
+ run : npm install -g aws-cdk
72
+
73
+ - name : Install AWS Lambda .NET CLI Tools
74
+ run : dotnet tool install -g Amazon.Lambda.Tools
75
+
76
+ - name : Deploy AOT Stack x86_64
77
+ run : |
78
+ cd libraries/tests/e2e/infra-aot
79
+ cdk deploy -c architecture=x86_64 --require-approval never
97
80
98
81
run-tests :
99
82
runs-on : ubuntu-latest
100
- needs : deploy-stack
83
+ needs : [ deploy-stack,deploy-aot-stack]
101
84
steps :
102
85
- name : Checkout code
103
86
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
@@ -117,7 +100,12 @@ jobs:
117
100
- name : Run Core Tests
118
101
run : |
119
102
cd libraries/tests/e2e/functions/core
120
- dotnet test
103
+ dotnet test --filter Category!=AOT
104
+
105
+ - name : Run Core AOT Tests
106
+ run : |
107
+ cd libraries/tests/e2e/functions/core
108
+ dotnet test --filter Category=AOT
121
109
122
110
destroy-stack :
123
111
runs-on : ubuntu-latest
@@ -145,45 +133,7 @@ jobs:
145
133
cd libraries/tests/e2e/infra
146
134
cdk destroy --force
147
135
148
- # destroy-aot-stack:
149
- # runs-on: ubuntu-latest
150
- # needs: run-tests
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
136
+ - name : Destroy AOT Core Stack
137
+ run : |
138
+ cd libraries/tests/e2e/infra-aot
139
+ cdk destroy -c architecture=x86_64 --force
0 commit comments