upgrade to Next.js 12 (#1109)

This commit is contained in:
Alex Johansson
2021-11-02 14:19:40 +00:00
committed by GitHub
parent 5a25e6daee
commit 265c634db9
8 changed files with 327 additions and 347 deletions
+15 -2
View File
@@ -51,7 +51,7 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-nextjs
- run: yarn test
- run: yarn prisma migrate deploy
@@ -59,7 +59,20 @@ jobs:
- run: yarn build
- run: yarn start &
- run: npx wait-port 3000 --timeout 10000
- run: yarn playwright install-deps
- name: Cache playwright binaries
uses: actions/cache@v2
id: playwright-cache
with:
path: |
~/Library/Caches/ms-playwright
~/.cache/ms-playwright
**/node_modules/playwright
key: cache-playwright-${{ hashFiles('**/yarn.lock') }}
- name: Install playwright deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: yarn playwright install-deps
- run: yarn test-playwright
- name: Upload videos