From af4b096cbe3d1ffd048288171f6786bf646e06a7 Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Wed, 13 Nov 2024 02:57:51 -0600 Subject: [PATCH 1/2] chore: Switch all scripts in pkg.json to use yarn --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3d825809..a05f0c2c 100644 --- a/package.json +++ b/package.json @@ -29,11 +29,11 @@ "lint": "eslint 'src/**/*.{ts,tsx}' 'test-e2e/**/*.ts'", "test": "mochette -c tsconfig.cjs.json -r tools/test-setup.js 'src/**/*.test.{ts,tsx}'", "test:e2e": "node tools/fetch-preact-versions.mjs && playwright test", - "test:e2e:10": "PREACT_VERSION=10 npm run test:e2e", - "test:e2e:11": "PREACT_VERSION=11 npm run test:e2e", - "test:e2e:git": "PREACT_VERSION=git npm run test:e2e", - "test:e2e:all": "npm run test:e2e && npm run test:e2e:10", - "dev": "npm run dev:serve", + "test:e2e:10": "PREACT_VERSION=10 yarn test:e2e", + "test:e2e:11": "PREACT_VERSION=11 yarn test:e2e", + "test:e2e:git": "PREACT_VERSION=git yarn test:e2e", + "test:e2e:all": "yarn test:e2e && yarn test:e2e:10", + "dev": "yarn dev:serve", "dev:serve": "vite test-e2e/fixtures --port 8100", "run:chrome": "node tools/build.mjs --browser chrome --debug && mkdir -p ./profiles/chrome && node tools/run-chrome.js", "run:firefox": "node tools/build.mjs --browser firefox --debug && mkdir -p ./profiles/firefox && web-ext run --source-dir ./dist/firefox-debug/ --start-url https://preactjs.com --firefox-profile=./profiles/firefox --keep-profile-changes", From e2dab1c0463ccf45c46e6d549a68c2fbbf70776e Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Wed, 13 Nov 2024 03:11:06 -0600 Subject: [PATCH 2/2] ci: Update CI to use fixed script --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 595a6427..88d0b32b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -26,7 +26,7 @@ jobs: yarn lint yarn test yarn build:chrome - PREACT_VERSION=10 yarn test:e2e --retries 5 + yarn test:e2e:10 --retries 5 env: CI: true - name: Upload test results