CI 정책 변경
CI / test (push) Successful in 5m15s
CI / pr_and_merge (push) Successful in 1m6s
CI / test (pull_request) Successful in 6m25s
CI / pr_and_merge (pull_request) Has been skipped

This commit is contained in:
2025-11-30 18:07:05 +09:00
parent 278195772a
commit c0ddb39562
+2 -19
View File
@@ -12,17 +12,13 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.56.1-jammy
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies - name: Install dependencies
run: | run: |
npm ci npm ci
@@ -48,19 +44,6 @@ jobs:
run: | run: |
npm test npm test
# Playwright 브라우저는 용량이 크기 때문에 캐시를 사용해 설치 시간을 단축한다.
- name: Cache Playwright browsers
if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install Playwright browsers
if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
run: |
npx playwright install --with-deps
- name: Run Playwright E2E tests - name: Run Playwright E2E tests
if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
run: | run: |