File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -61,25 +61,47 @@ jobs:
61
61
name : 🔬 Tests
62
62
timeout-minutes : 10
63
63
runs-on : ubuntu-latest
64
+ env :
65
+ VITE_BASE_URL : http://localhost:3000
64
66
strategy :
65
67
matrix :
66
68
node : [20, 22, 24, 'lts/*']
67
69
steps :
68
70
- uses : actions/checkout@v3
69
71
70
72
- name : Install pnpm
71
- uses : pnpm/action-setup@v2
73
+ uses : pnpm/action-setup@v4
72
74
with :
73
75
version : 10
74
76
77
+ - name : Get pnpm store directory
78
+ shell : bash
79
+ run : |
80
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
81
+
75
82
- name : Setup Node.js
76
83
uses : actions/setup-node@v4
77
84
with :
78
85
node-version : ${{ matrix.node }}
79
86
cache : ' pnpm'
80
87
88
+ - name : Cache node modules
89
+ uses : actions/cache@v4
90
+ env :
91
+ cache-name : cache-node-modules
92
+ with :
93
+ path : ${{ env.STORE_PATH }}
94
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
95
+ restore-keys : |
96
+ ${{ runner.os }}-pnpm-store-${{ env.cache-name }}-
97
+ ${{ runner.os }}-pnpm-store-
98
+ ${{ runner.os }}-
99
+
81
100
- name : Install deps
82
101
run : pnpm install
83
102
103
+ - name : Install Playwright Chromium
104
+ run : pnpm exec playwright install chromium --with-deps
105
+
84
106
- name : Run tests
85
107
run : SKIP_ENV_VALIDATION=true pnpm run test:ci
You can’t perform that action at this time.
0 commit comments