From 1d9f3bac4c23c53b11ce4e8f9c63c6ccad2263c9 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 27 Jun 2026 13:52:56 +0900 Subject: [PATCH] ci: cache playwright browsers --- .gitea/workflows/deploy.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e87d3d9..4705408 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,6 +18,21 @@ jobs: with: dotnet-version: '10.0' + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: npm + + - name: Cache Playwright browsers + uses: actions/cache@v4 + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-playwright- + - name: Restore dependencies run: dotnet restore TaxBaik.sln @@ -154,7 +169,7 @@ jobs: run: | set -e npm ci - npx playwright install chromium --with-deps + npx playwright install chromium - name: Browser E2E verification env: