5858 cache : ' npm'
5959
6060 - name : Install dependencies
61- run : npm ci
61+ run : npm ci --no-audit --no-fund
6262
6363 - name : Lint
6464 run : npm run lint
6969 integration-test :
7070 runs-on : ubuntu-latest
7171 name : Integration Tests
72- needs : unit-test
72+ needs : publication-check
73+ if : " !startsWith(github.ref, 'refs/tags/')"
7374 steps :
7475 - name : Checkout repository
7576 uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
8182 cache : ' npm'
8283
8384 - name : Install dependencies
84- run : npm ci
85+ run : npm ci --no-audit --no-fund
8586
8687 - name : Generate Prisma Client
8788 run : npx prisma generate
9293 coverage :
9394 runs-on : ubuntu-latest
9495 name : Test Coverage
95- needs : unit-test
96+ needs : publication-check
97+ if : " !startsWith(github.ref, 'refs/tags/')"
9698 steps :
9799 - name : Checkout repository
98100 uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
@@ -104,7 +106,7 @@ jobs:
104106 cache : ' npm'
105107
106108 - name : Install dependencies
107- run : npm ci
109+ run : npm ci --no-audit --no-fund
108110
109111 - name : Generate Prisma Client
110112 run : npx prisma generate
@@ -135,7 +137,8 @@ jobs:
135137 build-check :
136138 runs-on : ubuntu-latest
137139 name : Build Check
138- needs : integration-test
140+ needs : publication-check
141+ if : " !startsWith(github.ref, 'refs/tags/')"
139142 steps :
140143 - name : Checkout repository
141144 uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
@@ -146,8 +149,17 @@ jobs:
146149 node-version : ' 24'
147150 cache : ' npm'
148151
152+ - name : Cache Next.js build
153+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
154+ with :
155+ path : ${{ github.workspace }}/.next/cache
156+ key : nextjs-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
157+ restore-keys : |
158+ nextjs-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-
159+ nextjs-${{ runner.os }}-
160+
149161 - name : Install dependencies
150- run : npm ci
162+ run : npm ci --no-audit --no-fund
151163
152164 - name : Generate Prisma Client
153165 run : npx prisma generate
@@ -158,7 +170,7 @@ jobs:
158170 e2e-test :
159171 runs-on : ubuntu-latest
160172 name : E2E Tests
161- needs : build-check
173+ needs : [unit-test, integration-test, build-check]
162174 timeout-minutes : 60
163175 env :
164176 DATABASE_URL : " file:./e2e.db"
@@ -174,11 +186,20 @@ jobs:
174186 node-version : ' 24'
175187 cache : ' npm'
176188
189+ - name : Cache Next.js build
190+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
191+ with :
192+ path : ${{ github.workspace }}/.next/cache
193+ key : nextjs-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
194+ restore-keys : |
195+ nextjs-${{ runner.os }}-${{ hashFiles('package-lock.json') }}-
196+ nextjs-${{ runner.os }}-
197+
177198 - name : Install dependencies
178- run : npm ci
199+ run : npm ci --no-audit --no-fund
179200
180201 - name : Install Playwright Browsers
181- run : npx playwright install --with-deps
202+ run : npx playwright install --with-deps chromium
182203
183204 - name : Setup Database
184205 run : |
0 commit comments