diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f8e7372..c6cb271 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,17 +12,13 @@ on: jobs: test: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.56.1-jammy steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - name: Install dependencies run: | npm ci @@ -48,19 +44,6 @@ jobs: run: | 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 if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' run: |