Skip to content

Commit 586fa1b

Browse files
committed
feat: use pnpm instead of yarn to run playwright
1 parent f9fbd7f commit 586fa1b

File tree

6 files changed

+9878
-7481
lines changed

6 files changed

+9878
-7481
lines changed

.github/workflows/playwright.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ on:
99
push:
1010
branches:
1111
- develop
12-
- 'project/playwright'
1312
pull_request:
1413
branches:
1514
- develop
16-
- 'project/playwright'
17-
# Allows you to run this workflow manually from the Actions tab
15+
# Allows you to run this workflow manually from the Actions tab
1816
workflow_dispatch:
1917

2018
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
@@ -35,13 +33,13 @@ jobs:
3533
- uses: actions/setup-node@v4
3634
with:
3735
node-version: 20
38-
cache: 'yarn'
36+
cache: 'pnpm'
3937
- name: Install dependencies
40-
run: yarn install --frozen-lockfile
38+
run: pnpm install
4139
- name: Run Typecheck
42-
run: yarn typecheck
40+
run: pnpm typecheck
4341
- name: Run Biome Check
44-
run: yarn biome:ci
42+
run: pnpm biome:ci
4543
test-e2e:
4644
name: E2E Tests
4745
environment: 'test'
@@ -55,12 +53,10 @@ jobs:
5553
- uses: actions/setup-node@v4
5654
with:
5755
node-version: lts/*
58-
- name: Install dependencies
59-
run: npm install -g yarn && yarn
6056
- name: Install Playwright Browsers
61-
run: yarn playwright install --with-deps
57+
run: pnpmx playwright install --with-deps
6258
- name: Run Playwright Tests
63-
run: yarn playwright test
59+
run: pnpmx playwright test
6460
- uses: actions/upload-artifact@v4
6561
id: playwright-report-artifact
6662
if: ${{ !cancelled() }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"storybook": "pnpm -F go-ui-storybook storybook",
2020
"build-storybook": "pnpm -F go-ui-storybook build-storybook",
2121
"chromatic": "pnpm -F go-ui-storybook chromatic",
22-
"test:e2e": "yarn workspace e2e-tests playwright test"
22+
"test:e2e": "pnpm -F e2e-tests playwright test"
2323
},
2424
"devDependencies": {
2525
"knip": "^5.36.3"

packages/e2e-tests/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Playwright Base URL
1+
# Base URL for the application where Playwright will run tests
22
PLAYWRIGHT_APP_BASE_URL=
33
# User name of the test user for Playwright
44
PLAYWRIGHT_USER_NAME=

packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"typecheck": "tsc --noEmit",
1414
"test": "playwright test",
1515
"format": "biome format ./tests/* ./utils/*",
16-
"lint": "yarn biome lint ./tests/* ./utils/*",
16+
"lint": "pnpm biome lint ./tests/* ./utils/*",
1717
"biome:check": "biome check ./tests/* ./utils/*",
1818
"biome:ci": "biome ci ./tests/* ./utils/*",
1919
"biome:fix": "biome check --apply ./tests/* ./utils/*"

0 commit comments

Comments
 (0)