Skip to content

Commit 0ee68ec

Browse files
committed
Fix Corepack issues
1 parent 88bc51b commit 0ee68ec

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/e2e.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
jobs:
2121
e2e:
2222
runs-on: ubuntu-24.04
23-
# container: mcr.microsoft.com/playwright:v1.50.0-noble
23+
container: mcr.microsoft.com/playwright:v1.50.0-noble
2424
timeout-minutes: 60
2525
steps:
2626
- name: 📥 Checkout
@@ -38,15 +38,25 @@ jobs:
3838
- name: 💻 Node setup
3939
uses: ./.github/actions/node-setup
4040

41-
- name: 🎭 E2E setup
42-
uses: ./.github/actions/e2e-setup
41+
- name: Activate pnpm (pin)
42+
run: corepack prepare [email protected] --activate
43+
shell: bash
44+
45+
- name: Install dependencies
46+
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
47+
shell: bash
4348

4449
- name: 🏗️ Build apps
4550
run: pnpm build
4651
shell: bash
4752

53+
- name: 🎭 E2E setup
54+
uses: ./.github/actions/e2e-setup
55+
4856
- name: 🧪 Run E2E (HTML report)
4957
run: pnpm e2e
58+
env:
59+
PWDEBUG: '0'
5060
shell: bash
5161

5262
- name: 📤 Upload Playwright artifacts
@@ -55,7 +65,7 @@ jobs:
5565
with:
5666
name: playwright-artifacts
5767
path: |
58-
apps/frontend-e2e/playwright-report/
59-
apps/frontend-e2e/test-results/
60-
apps/frontend-e2e/reports/
68+
apps/*-e2e/playwright-report/
69+
apps/*-e2e/test-results/
70+
apps/*-e2e/reports/
6171
if-no-files-found: ignore

apps/frontend-e2e/playwright.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ export default defineConfig({
1515
],
1616
webServer: process.env.CI
1717
? {
18-
command: 'pnpm --filter @infinum/frontend dev',
18+
command: 'pnpm --filter @infinum/frontend start',
1919
port: 3000,
2020
reuseExistingServer: !process.env.CI,
21+
env: {
22+
NODE_OPTIONS: '',
23+
},
2124
}
2225
: undefined,
2326
});

0 commit comments

Comments
 (0)