@@ -164,6 +164,53 @@ jobs:
164
164
aws-region : us-west-2
165
165
- name : Run E2E tests
166
166
run : npm run e2e
167
+ run_package_manager_e2e_tests :
168
+ if : needs.do_include_e2e.outputs.run_e2e == 'true'
169
+ strategy :
170
+ # will finish running other test matrices even if one fails
171
+ fail-fast : false
172
+ matrix :
173
+ os : [ubuntu-latest, macos-latest, windows-latest]
174
+ pkg-manager : [npm, yarn-classic, yarn-modern, pnpm]
175
+ node-version : [20]
176
+ exclude :
177
+ - os : windows-latest
178
+ pkg-manager : pnpm
179
+ env :
180
+ PACKAGE_MANAGER : ${{ matrix.pkg-manager }}
181
+ runs-on : ${{ matrix.os }}
182
+ timeout-minutes : 25
183
+ needs :
184
+ - build
185
+ - do_include_e2e
186
+ permissions :
187
+ # these permissions are required for the configure-aws-credentials action to get a JWT from GitHub
188
+ id-token : write
189
+ contents : read
190
+ steps :
191
+ - name : Checkout aws-amplify/amplify-cli repo
192
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
193
+ - name : Setup Node.js
194
+ uses : actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # version 3.8.1
195
+ with :
196
+ node-version : ${{ matrix.node-version }}
197
+ - name : Restore Build Cache
198
+ uses : ./.github/actions/restore_build_cache
199
+ - name : Configure test tooling credentials
200
+ uses : ./.github/actions/setup_profile
201
+ with :
202
+ role-to-assume : ${{ secrets.E2E_TOOLING_ROLE_ARN }}
203
+ aws-region : us-west-2
204
+ profile-name : e2e-tooling
205
+ - name : Configure test execution credentials
206
+ uses : aws-actions/configure-aws-credentials@04b98b3f9e85f563fb061be8751a0352327246b0 # version 3.0.1
207
+ with :
208
+ role-to-assume : ${{ secrets.E2E_RUNNER_ROLE_ARN }}
209
+ aws-region : us-west-2
210
+ - name : Run E2E flow tests with ${{ matrix.pkg-manager }}
211
+ shell : bash
212
+ run : |
213
+ PACKAGE_MANAGER=${{matrix.pkg-manager}} npm run test:dir packages/integration-tests/src/package_manager_sanity_checks.test.ts
167
214
lint :
168
215
runs-on : ubuntu-latest
169
216
needs :
0 commit comments