From 5820d73b3ac633ae82ac3f2414cea6d7a6f64237 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 17 Jul 2024 17:47:58 +0200 Subject: [PATCH] ci: get chrome version tied to puppeteer version (#55536) --- .github/workflows/node.js-tests.yml | 6 +++--- curriculum/package.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js-tests.yml b/.github/workflows/node.js-tests.yml index 91c5a006ba9..bed5cf28ca5 100644 --- a/.github/workflows/node.js-tests.yml +++ b/.github/workflows/node.js-tests.yml @@ -148,7 +148,7 @@ jobs: pnpm install - name: Install Chrome for Puppeteer - run: pnpm dlx puppeteer browsers install chrome + run: pnpm -F=curriculum install-puppeteer - name: Run Tests run: pnpm test @@ -198,7 +198,7 @@ jobs: pnpm install - name: Install Chrome for Puppeteer - run: pnpm dlx puppeteer browsers install chrome + run: pnpm -F=curriculum install-puppeteer - name: Run Tests run: pnpm test @@ -259,7 +259,7 @@ jobs: pnpm run build - name: Install Chrome for Puppeteer - run: pnpm dlx puppeteer browsers install chrome + run: pnpm -F=curriculum install-puppeteer - name: Run Tests env: diff --git a/curriculum/package.json b/curriculum/package.json index 504b1214d14..e45d42f911c 100644 --- a/curriculum/package.json +++ b/curriculum/package.json @@ -27,6 +27,7 @@ "insert-challenge": "CALLING_DIR=$INIT_CWD ts-node --project ../tsconfig.json ../tools/challenge-helper-scripts/insert-challenge", "insert-step": "CALLING_DIR=$INIT_CWD ts-node --project ../tsconfig.json ../tools/challenge-helper-scripts/insert-step", "insert-task": "CALLING_DIR=$INIT_CWD ts-node --project ../tsconfig.json ../tools/challenge-helper-scripts/insert-task", + "install-puppeteer": "puppeteer browsers install chrome", "delete-step": "CALLING_DIR=$INIT_CWD ts-node --project ../tsconfig.json ../tools/challenge-helper-scripts/delete-step", "delete-challenge": "CALLING_DIR=$INIT_CWD ts-node --project ../tsconfig.json ../tools/challenge-helper-scripts/delete-challenge", "delete-task": "CALLING_DIR=$INIT_CWD ts-node --project ../tsconfig.json ../tools/challenge-helper-scripts/delete-task",