File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : E2E Tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ e2e-tests :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version-file : ' .nvmrc'
20+
21+ - name : Setup pnpm
22+ uses : pnpm/action-setup@v2
23+ with :
24+ version : 9.15.3
25+ run_install : false
26+
27+ - name : Get pnpm store directory
28+ id : pnpm-cache
29+ shell : bash
30+ run : |
31+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
32+
33+ - uses : actions/cache@v3
34+ name : Setup pnpm cache
35+ with :
36+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
37+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pnpm-store-
40+
41+ - name : Install dependencies
42+ run : pnpm install
43+
44+ - name : Install Playwright browsers
45+ run : npx playwright install --with-deps chromium
46+
47+ - name : Run E2E tests
48+ run : pnpm e2e
You can’t perform that action at this time.
0 commit comments