Skip to content

chore(deps): update nextjs monorepo to v14.2.6 #587

chore(deps): update nextjs monorepo to v14.2.6

chore(deps): update nextjs monorepo to v14.2.6 #587

Workflow file for this run

name: test
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
# Needd to run migrations before lint since prisma generates code here
- name: Migrate
run: pnpm run db:migrate
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/app
- name: Lint
run: pnpm run lint
- name: Format
run: pnpm run format
- name: Test
run: pnpm run test:ci
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/app