statically render profile pages (#615)

This commit is contained in:
Alex Johansson
2021-09-27 17:09:19 +01:00
committed by GitHub
parent 34300650e4
commit 649e79bdc7
7 changed files with 152 additions and 81 deletions

View File

@@ -4,6 +4,19 @@ jobs:
build:
name: Build on Node ${{ matrix.node }} and ${{ matrix.os }}
env:
DATABASE_URL: postgresql://postgres:@localhost:5432/calendso
NODE_ENV: test
BASE_URL: http://localhost:3000
JWT_SECRET: secret
services:
postgres:
image: postgres:12.1
env:
POSTGRES_USER: postgres
POSTGRES_DB: calendso
ports:
- 5432:5432
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -28,5 +41,6 @@ jobs:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs
- run: yarn prisma migrate deploy
- run: yarn test
- run: yarn build

View File

@@ -53,9 +53,10 @@ jobs:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs
- run: yarn build
- run: yarn test
- run: yarn prisma migrate deploy
- run: yarn db-seed
- run: yarn build
- run: yarn start &
- run: npx wait-port 3000 --timeout 10000
- run: yarn cypress run