From 4a81e257b1d453b4d870ed1ba5130686d2ff8343 Mon Sep 17 00:00:00 2001 From: stakbucks Date: Thu, 15 Aug 2024 19:36:49 +0900 Subject: [PATCH] test: with playwright actions/cache --- .github/workflows/preview.yaml | 1 + .github/workflows/preview_bottle.yaml | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 9d6b0c4..41be423 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -8,6 +8,7 @@ on: push: branches-ignore: - main + - chore/ci-test jobs: Deploy-Preview: runs-on: ubuntu-latest diff --git a/.github/workflows/preview_bottle.yaml b/.github/workflows/preview_bottle.yaml index d02c12b..1fe5061 100644 --- a/.github/workflows/preview_bottle.yaml +++ b/.github/workflows/preview_bottle.yaml @@ -35,8 +35,18 @@ jobs: restore-keys: | ${{ runner.os }}-turbo- - run: pnpm install + - name: Get installed Playwright version + id: playwright-version + run: echo "PLAYWRIGHT_VERSION=1.46.0" >> $GITHUB_ENV + - name: Cache playwright binaries + uses: actions/cache@v4 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - run: pnpx playwright install --with-deps - - run: pnpm run build + if: steps.playwright-cache.outputs.cache-hit != 'true' - name: create dotenv run: | touch apps/bottle/.env.local