File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 6666
6767 cypress_e2e_tests :
6868 name : Cypress E2E test
69+ timeout-minutes : 10
6970 runs-on : ubuntu-latest
7071 steps :
7172 - uses : actions/checkout@v5
@@ -103,11 +104,8 @@ jobs:
103104
104105 playwright_e2e_tests :
105106 name : Playwright E2E test
106- timeout-minutes : 15
107- runs-on : ubuntu-latest
108- container :
109- image : mcr.microsoft.com/playwright:v1.55.1-noble
110- options : --user 1001
107+ timeout-minutes : 10
108+ runs-on : macos-latest
111109 steps :
112110 - uses : actions/checkout@v5
113111
@@ -124,6 +122,21 @@ jobs:
124122 - name : Install dependencies
125123 run : pnpm install
126124
125+ - name : Get playwright version
126+ id : playwright-version
127+ run : echo "version=$(pnpm info @playwright/test version)" >> $GITHUB_OUTPUT
128+
129+ - name : Cache playwright binary
130+ id : cache-playwright-binary
131+ uses : actions/cache@v4
132+ with :
133+ path : ~/.cache/ms-playwright
134+ key : playwright-binary-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
135+
136+ - name : Install Playwright binary
137+ if : steps.cache-playwright-binary.outputs.cache-hit != 'true'
138+ run : pnpm playwright install --with-deps
139+
127140 - name : E2E test
128141 run : pnpm test:playwright
129142
You can’t perform that action at this time.
0 commit comments