File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - reopened
8+ - synchronize
9+ - ready_for_review
10+
11+ permissions :
12+ contents : read
13+
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.event.pull_request.number }}
16+ cancel-in-progress : true
17+
18+ jobs :
19+ test :
20+ name : Lint, type-check, and test
21+ runs-on : ubuntu-latest
22+
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+
27+ - name : Setup pnpm
28+ uses : pnpm/action-setup@v4
29+ with :
30+ version : 9.14.1
31+
32+ - name : Setup Node.js
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : 22
36+ cache : pnpm
37+
38+ - name : Install dependencies
39+ run : pnpm install --frozen-lockfile
40+
41+ - name : Lint
42+ run : pnpm exec eslint .
43+
44+ - name : Type-check
45+ run : pnpm compile
46+
47+ - name : Unit tests
48+ run : pnpm test:unit
49+
50+ - name : Install Playwright browsers
51+ run : pnpm exec playwright install --with-deps chromium
52+
53+ - name : E2E tests
54+ run : pnpm test:e2e
Original file line number Diff line number Diff line change 1- import { existsSync } from 'node:fs'
2- import process from 'node:process'
31import { defineConfig } from '@playwright/test'
42
5- const chromiumExecutablePath = [
6- process . env . PLAYWRIGHT_CHROMIUM_EXECUTABLE ,
7- 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' ,
8- 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' ,
9- 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe' ,
10- 'C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe' ,
11- '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' ,
12- '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge' ,
13- '/usr/bin/google-chrome' ,
14- '/usr/bin/chromium' ,
15- '/usr/bin/chromium-browser' ,
16- ] . find ( ( value ) : value is string => Boolean ( value && existsSync ( value ) ) )
17-
183export default defineConfig ( {
194testDir : './tests/e2e' ,
205timeout : 60_000 ,
@@ -25,9 +10,6 @@ export default defineConfig({
2510reporter : 'list' ,
2611use : {
2712browserName : 'chromium' ,
28- launchOptions : chromiumExecutablePath
29- ? { executablePath : chromiumExecutablePath }
30- : undefined ,
3113trace : 'retain-on-failure' ,
3214} ,
3315} )
You can’t perform that action at this time.
0 commit comments