CI 정책 수정
This commit is contained in:
@@ -5,9 +5,6 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- feature/**
|
- feature/**
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -35,6 +32,7 @@ jobs:
|
|||||||
npx prisma generate
|
npx prisma generate
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
if: github.event_name == 'push'
|
||||||
env:
|
env:
|
||||||
# API 유닛 테스트에서도 PrismaClient가 필요하므로,
|
# API 유닛 테스트에서도 PrismaClient가 필요하므로,
|
||||||
# generate 단계와 동일한 더미 DATABASE_URL 을 사용한다.
|
# generate 단계와 동일한 더미 DATABASE_URL 을 사용한다.
|
||||||
@@ -45,7 +43,7 @@ jobs:
|
|||||||
npm test
|
npm test
|
||||||
|
|
||||||
- name: Run Playwright E2E tests
|
- 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: |
|
run: |
|
||||||
npx playwright test
|
npx playwright test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user