Skip to content

Commit 4daa76d

Browse files
committed
fix(ci): add prisma generate and fix Playwright install
- Add 'prisma generate' step to lint and type-check jobs - Replace 'playwright install-deps' with 'playwright install --with-deps' - Fix Playwright cache key patterns for consistency
1 parent c2cadcb commit 4daa76d

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
- name: Install locked dependencies
6666
run: npm ci
6767

68+
- name: Generate Prisma Client
69+
run: npx prisma generate
70+
6871
- name: Build CSS assets from Tailwind CSS
6972
run: npm run build:css
7073

@@ -97,6 +100,9 @@ jobs:
97100
- name: Install locked dependencies
98101
run: npm ci
99102

103+
- name: Generate Prisma Client
104+
run: npx prisma generate
105+
100106
- name: Type check
101107
run: npm run type-check
102108
env:
@@ -164,9 +170,6 @@ jobs:
164170
- name: Install locked dependencies
165171
run: npm ci
166172

167-
- name: Install operating system dependencies
168-
run: npx playwright install-deps
169-
170173
- name: Restore cached Playwright dependencies
171174
id: cache-playwright
172175
uses: actions/cache@v4
@@ -176,22 +179,22 @@ jobs:
176179
${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json')
177180
}}-${{ hashFiles('**/playwright.config.ts') }}
178181
restore-keys: |
179-
${{ runner.os }}-playwright-i
182+
${{ runner.os }}-playwright-
180183
181-
- name: Install Playwright browsers
184+
- name: Install Playwright browsers with dependencies
182185
if: steps.cache-playwright.outputs.cache-hit != 'true'
183-
run: npx playwright install
186+
run: npx playwright install --with-deps
184187

185188
- name: Cache Playwright dependencies
186189
if: steps.cache-playwright.outputs.cache-hit != 'true'
187190
uses: actions/cache@v4
188191
with:
189192
path: ~/.cache/ms-playwright
190193
key:
191-
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{
192-
hashFiles('**/playwright.config.ts') }}
194+
${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json')
195+
}}-${{ hashFiles('**/playwright.config.ts') }}
193196
restore-keys: |
194-
${{ runner.os }}-playwright-i
197+
${{ runner.os }}-playwright-
195198
196199
- name: Run end-to-end tests
197200
run: npm run test:e2e:run

0 commit comments

Comments
 (0)