Skip to content

Commit

Permalink
Playwright is so annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing committed Oct 12, 2023
1 parent 7ed39ee commit a1cdeac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
pull_request:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 # Skip downloading during bun install
PLAYWRIGHT_BROWSERS_PATH: 0 # Places binaries to node_modules/@playwright/test

jobs:
test-deploy:
Expand All @@ -16,8 +18,9 @@ jobs:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bunx playwright install --with-deps chromium
- name: Install dependencies
run: bun install
- run: bunx playwright install --with-deps chromium
- run: bunx playwright install
- name: Test build website
run: bun run build

0 comments on commit a1cdeac

Please sign in to comment.