Next.jsの設定で、パス名を「/a/**」に変更しました。 #271
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ci-check: | |
runs-on: ubuntu-latest | |
services: | |
neon: | |
image: postgres:17 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- '5435:5432' | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: main | |
neon-proxy: | |
image: ghcr.io/timowilhelm/local-neon-http-proxy:main | |
ports: | |
- '4445:4444' | |
env: | |
PG_CONNECTION_STRING: postgres://postgres:postgres@neon:5432/main | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 'latest' | |
- name: Create .env | |
run: | | |
cd next | |
echo "TIPTAP_PRO_API_KEY=${{ secrets.TIPTAP_PRO_API_KEY }}" >> .env | |
echo "DATABASE_URL=postgres://postgres:[email protected]:5435/main" >> .env | |
- name: Install dependencies | |
run: | | |
cd next | |
bun install | |
- name: Run Biome | |
run: | | |
cd next | |
bun x biome ci . | |
- name: Run Tests | |
run: | | |
cd next | |
bunx prisma migrate dev && bunx prisma migrate deploy | |
bunx vitest |