
* Adds test todos * Can't seem to change locales * WIP playwright test refactoring * jest-playwright cleanup * Test fixes * Test fixes * More test fixes * WIP: Testing fixes * More test fixes * Removes unused files * Installs missing browsers for e2e * ts-node fixes * ts-check fixes * Type fixes * Fixes e2e * FFS * Renamex webhook snapshot * Fixes webhook cross-platform * Renamed webhook snapshot * Apply suggestions from code review Co-authored-by: Max Schmitt <max@schmitt.mx> * Removes kont dependency * Cleanup playwright options * Next.js cache optimizations on CI * Uses cache on e2e as well * Fixme is introducing side-effects Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Bailey Pumfleet <pumfleet@hey.com> Co-authored-by: Max Schmitt <max@schmitt.mx>
76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
name: Build
|
|
on: [push]
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 5
|
|
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:
|
|
node: ["14.x"]
|
|
os: [ubuntu-latest]
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node ${{ matrix.node }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- name: Install deps
|
|
uses: bahmutov/npm-install@v1
|
|
|
|
- name: Next.js cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ${{ github.workspace }}/.next/cache
|
|
# Generate a new cache whenever packages or source files change.
|
|
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
|
# If source files changed but packages didn't, rebuild from a prior cache.
|
|
restore-keys: |
|
|
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
|
|
|
- run: yarn prisma migrate deploy
|
|
- run: yarn test
|
|
- run: yarn build
|
|
|
|
types:
|
|
name: Check types
|
|
|
|
strategy:
|
|
matrix:
|
|
node: ["14.x"]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Use Node ${{ matrix.node }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- name: Install deps
|
|
uses: bahmutov/npm-install@v1
|
|
|
|
- run: yarn check-changed-files
|