Skip to content

Commit cc895a0

Browse files
authored
Update e2e-tests.yml
1 parent b388497 commit cc895a0

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,30 @@ jobs:
7979
echo " - SFCC_ACCOUNT_MANAGER_HOST (var): ${SFCC_ACCOUNT_MANAGER_HOST:+✓}" >> $GITHUB_STEP_SUMMARY
8080
echo " - SFCC_SANDBOX_API_HOST (var): ${SFCC_SANDBOX_API_HOST:+✓}" >> $GITHUB_STEP_SUMMARY
8181
fi
82+
- name: Setup pnpm
83+
uses: pnpm/action-setup@v4
84+
with:
85+
version: 10.17.1
86+
87+
- name: Get pnpm store directory
88+
shell: bash
89+
run: |
90+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
91+
92+
- name: Setup pnpm cache
93+
uses: actions/cache@v4
94+
with:
95+
path: ${{ env.STORE_PATH }}
96+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
97+
restore-keys: |
98+
${{ runner.os }}-pnpm-store-
99+
82100
- name: Install dependencies
83101
if: steps.check-secrets.outputs.has-secrets == 'true'
84-
run: pnpm install
102+
run: pnpm install --frozen-lockfile
85103
- name: Build package
86104
if: steps.check-secrets.outputs.has-secrets == 'true'
87-
run: pnpm run build
105+
run: pnpm -r run build
88106
- name: Run E2E Tests
89107
if: steps.check-secrets.outputs.has-secrets == 'true'
90108
id: e2e-test
@@ -102,11 +120,11 @@ jobs:
102120
echo "Running E2E tests with realm: ${TEST_REALM}"
103121
104122
# Run E2E tests with JSON output for parsing
105-
pnpm mocha "test/functional/e2e/**/*.test.ts" --reporter json > e2e-results.json || true
123+
pnpm mocha "packages/b2c-cli/test/functional/e2e/**/*.test.ts" --reporter json > e2e-results.json || true
106124
107125
# Also run with spec reporter for readable output
108126
echo "## E2E Test Results" >> $GITHUB_STEP_SUMMARY
109-
pnpm mocha "test/functional/e2e/**/*.test.ts" --reporter spec
127+
pnpm mocha "packages/b2c-cli/test/functional/e2e/**/*.test.ts" --reporter spec
110128
- name: Parse E2E Results
111129
if: always() && steps.e2e-test.conclusion != 'cancelled' && steps.check-secrets.outputs.has-secrets == 'true'
112130
run: |

0 commit comments

Comments
 (0)