From 9b140ce5038c37b09dede8906a5d65600998f931 Mon Sep 17 00:00:00 2001 From: Igor Klepacki Date: Thu, 23 Jan 2025 17:04:02 +0100 Subject: [PATCH] chore: update bundle and test actions --- .github/workflows/nextjs_bundle_analysis.yml | 2 +- .github/workflows/playwright.yml | 4 ++++ playwright.config.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nextjs_bundle_analysis.yml b/.github/workflows/nextjs_bundle_analysis.yml index 6474ca6..2cef08a 100644 --- a/.github/workflows/nextjs_bundle_analysis.yml +++ b/.github/workflows/nextjs_bundle_analysis.yml @@ -67,7 +67,7 @@ jobs: path: .next/analyze/__bundle_analysis.json - name: Download base branch bundle stats - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v8 if: success() && github.event.number with: workflow: nextjs_bundle_analysis.yml diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 97e5add..e08b291 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -18,16 +18,20 @@ jobs: uses: actions/setup-node@v3 with: node-version: "${{ env.node_version }}" + - name: "Install pnpm & dependencies" uses: pnpm/action-setup@v4 with: run_install: | - recursive: true - args: [--frozen-lockfile] + - name: Install Playwright Browsers run: pnpm playwright install --with-deps + - name: Run Playwright tests run: pnpm playwright test + - uses: actions/upload-artifact@v4 if: always() with: diff --git a/playwright.config.ts b/playwright.config.ts index b578137..dd516f1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -70,7 +70,7 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: "yarn dev", + command: "pnpm dev", url: "http://127.0.0.1:3000", reuseExistingServer: !process.env.CI, },