Files
logos-web/.github/workflows/test.yml
T
jinhojang6 ebfcd999cb fix(ci): unbreak Vercel install and prevent pnpm/lockfile drift
- Remove pinned pnpm 10.9.0 from pnpm/action-setup so it honors
  packageManager (pnpm@11.1.0) — fixes ERR_PNPM_BAD_PM_VERSION.
- Regenerate pnpm-lock.yaml to restore the vitest peer-dep snapshot
  resolved against @types/node@25.6.0 (civi-crm) — fixes
  ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY on Vercel.
- Add scripts/__tests__/repo-health.test.mjs guarding against both
  classes of failure: workflow pnpm version must match packageManager,
  and pnpm-lock.yaml must satisfy --frozen-lockfile.
- Wire pnpm test:repo-health into test:release as the first step.
2026-05-21 19:37:11 +09:00

43 lines
1.1 KiB
YAML

name: Test
on:
pull_request:
push:
branches:
- develop
- master
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
image: postgres:17
env:
POSTGRES_DB: logos_test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd "pg_isready -U postgres -d logos_test"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/logos_test
NEXT_PUBLIC_API_MODE: production
NEXT_PUBLIC_SERVER_URL: http://localhost:3001
NEXT_PUBLIC_WEB_URL: http://localhost:3000
PAYLOAD_SECRET: test-secret-at-least-32-characters
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- run: CI=true pnpm install --frozen-lockfile
- run: pnpm test:release