diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c6cb271..7285014 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,9 +5,6 @@ on: branches: - main - feature/** - pull_request: - branches: - - main jobs: test: @@ -35,6 +32,7 @@ jobs: npx prisma generate - name: Run unit tests + if: github.event_name == 'push' env: # API 유닛 테스트에서도 PrismaClient가 필요하므로, # generate 단계와 동일한 더미 DATABASE_URL 을 사용한다. @@ -45,7 +43,7 @@ jobs: npm test - name: Run Playwright E2E tests - if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | npx playwright test