Skip to content

Commit 154bdb2

Browse files
authored
feat: add Package Manager test to health_checks (#968)
* add package-manager-tests to health-checks * remove poc-e2e-flow-test * add run_package_manager_tests_tests condition * fix run_package_manager_tests_tests condition * remove amplify-backend_windows-latest_8-core * use re-usable action for run-e2e * Revert "remove amplify-backend_windows-latest_8-core" This reverts commit 547834a. * Revert "use re-usable action for run-e2e" This reverts commit 3159e01. * revert re-usable action
1 parent a4011c4 commit 154bdb2

File tree

2 files changed

+47
-81
lines changed

2 files changed

+47
-81
lines changed

.github/workflows/health_checks.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,53 @@ jobs:
164164
aws-region: us-west-2
165165
- name: Run E2E tests
166166
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
167214
lint:
168215
runs-on: ubuntu-latest
169216
needs:

.github/workflows/poc-e2e-flow-test.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)