chore: update bundle and test actions

This commit is contained in:
Igor Klepacki 2025-01-23 17:04:02 +01:00
parent 42d651eab9
commit 9b140ce503
No known key found for this signature in database
GPG key ID: 951043B45C7A29E7
3 changed files with 6 additions and 2 deletions

View file

@ -67,7 +67,7 @@ jobs:
path: .next/analyze/__bundle_analysis.json path: .next/analyze/__bundle_analysis.json
- name: Download base branch bundle stats - name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v8
if: success() && github.event.number if: success() && github.event.number
with: with:
workflow: nextjs_bundle_analysis.yml workflow: nextjs_bundle_analysis.yml

View file

@ -18,16 +18,20 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: "${{ env.node_version }}" node-version: "${{ env.node_version }}"
- name: "Install pnpm & dependencies" - name: "Install pnpm & dependencies"
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4
with: with:
run_install: | run_install: |
- recursive: true - recursive: true
- args: [--frozen-lockfile] - args: [--frozen-lockfile]
- name: Install Playwright Browsers - name: Install Playwright Browsers
run: pnpm playwright install --with-deps run: pnpm playwright install --with-deps
- name: Run Playwright tests - name: Run Playwright tests
run: pnpm playwright test run: pnpm playwright test
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
if: always() if: always()
with: with:

View file

@ -70,7 +70,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */ /* Run your local dev server before starting the tests */
webServer: { webServer: {
command: "yarn dev", command: "pnpm dev",
url: "http://127.0.0.1:3000", url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI, reuseExistingServer: !process.env.CI,
}, },