@@ -25,11 +25,11 @@ jobs:
2525 steps :
2626 - uses : actions/checkout@v4
2727
28- - uses : actions/setup-node@v4
28+ - uses : actions/setup-node@v6
2929 with :
3030 node-version : 24
3131
32- - uses : actions/setup-python@v5
32+ - uses : actions/setup-python@v6
3333 with :
3434 python-version : ' 3.12'
3535
@@ -63,10 +63,26 @@ jobs:
6363 - name : Seed test data into FalkorDB
6464 run : python e2e/seed_test_data.py
6565
66- - name : Install Playwright
66+ - name : Install Playwright npm dependencies
6767 run : |
6868 npm ci
69- npx playwright install --with-deps
69+
70+ - name : Cache Playwright browsers
71+ id : playwright-cache
72+ uses : actions/cache@v4
73+ with :
74+ path : ~/.cache/ms-playwright
75+ key : playwright-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package-lock.json') }}
76+
77+ - name : Install Playwright browsers
78+ if : steps.playwright-cache.outputs.cache-hit != 'true'
79+ run : npx playwright install --with-deps chromium firefox
80+
81+ - name : Install Playwright system deps
82+ if : steps.playwright-cache.outputs.cache-hit == 'true'
83+ run : |
84+ npx playwright install chromium firefox
85+ npx playwright install-deps chromium firefox
7086
7187 - name : Run Playwright tests
7288 env :
86102 mkdir -p playwright-report
87103 mkdir -p playwright-report/artifacts
88104
89- - uses : actions/upload-artifact@v4
105+ - uses : actions/upload-artifact@v7
90106 if : always()
91107 with :
92108 name : playwright-report-shard-${{ matrix.shard }}
95111
96112 - name : Upload failed test screenshots
97113 if : always()
98- uses : actions/upload-artifact@v4
114+ uses : actions/upload-artifact@v7
99115 with :
100116 name : failed-test-screenshots-shard-${{ matrix.shard }}
101117 path : playwright-report/artifacts/
0 commit comments