File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 1616 name : End-to-End Tests
1717 runs-on : ubuntu-24.04
1818 timeout-minutes : 15
19+ permissions :
20+ contents : read
21+ pull-requests : write
22+ issues : write
1923
2024 steps :
2125 - name : Checkout
3438 - name : Build dependencies
3539 run : make ci-build
3640
41+ - name : Cache Playwright browsers
42+ uses : actions/cache@v4
43+ id : playwright-cache
44+ with :
45+ path : |
46+ ~/.cache/ms-playwright
47+ key : ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
48+ restore-keys : |
49+ ${{ runner.os }}-playwright-
50+
3751 - name : Install Playwright browsers
52+ if : steps.playwright-cache.outputs.cache-hit != 'true'
3853 run : |
3954 cd packages/app
4055 npx playwright install --with-deps chromium
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ export default defineConfig({
1111 forbidOnly : ! ! process . env . CI ,
1212 /* Retry on CI only */
1313 retries : process . env . CI ? 2 : 0 ,
14- /* Opt out of parallel tests on CI. */
15- workers : process . env . CI ? 1 : undefined ,
14+ /* Use multiple workers on CI for faster execution */
15+ workers : process . env . CI ? 4 : undefined ,
1616 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
1717 reporter : [
1818 [ 'html' ] ,
@@ -43,9 +43,11 @@ export default defineConfig({
4343
4444 /* Run your local dev server before starting the tests */
4545 webServer : {
46- command : 'NEXT_PUBLIC_IS_LOCAL_MODE=true npm run dev' ,
47- url : 'http://localhost:8080 ',
46+ command :
47+ 'NEXT_PUBLIC_IS_LOCAL_MODE=true NEXT_TELEMETRY_DISABLED=1 yarn run dev ',
4848 reuseExistingServer : true ,
4949 timeout : 120 * 1000 ,
50+ stdout : 'pipe' ,
51+ stderr : 'pipe' ,
5052 } ,
5153} ) ;
You can’t perform that action at this time.
0 commit comments