From: Haoqun Jiang Date: Fri, 12 May 2023 15:30:52 +0000 (+0800) Subject: ci: only cache binaries when necessary X-Git-Tag: v3.7.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cae86f1037c907c6bd184537e6273a67b182ed6f;p=thirdparty%2Fvuejs%2Fcreate-vue.git ci: only cache binaries when necessary I find many of the CI minutes are wasted on unnecessary caching --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ff80b28..620d83d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,7 +131,8 @@ jobs: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME\.cache\playwright-bin" >> $env:GITHUB_ENV echo "CYPRESS_CACHE_FOLDER=$HOME\.cache\cypress-bin" >> $env:GITHUB_ENV - - name: Cache Cypress binaries + - if: ${{ contains(matrix.flag-for-e2e, '--cypress') }} + name: Cache Cypress binaries id: cache-cypress uses: actions/cache@v3 with: @@ -139,7 +140,8 @@ jobs: key: ${{ runner.os }}-cypress-bin path: ${{ env.CYPRESS_CACHE_FOLDER }} - - name: Cache Playwright's binary + - if: ${{ contains(matrix.flag-for-e2e, '--playwright') }} + name: Cache Playwright's binary uses: actions/cache@v3 with: # Playwright removes unused browsers automatically