From f4760decdfd1a3c69050e0f812ad3981232931c6 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Wed, 31 Jan 2024 18:06:51 +0100 Subject: [PATCH] ci: make GitHub Actions cache easer to search for (#11800) --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/deflake.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4d4ce76973..148e2369a30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -198,7 +198,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/chrome - key: ${{ runner.os }}-Chrome-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} + key: Chrome-${{ runner.os }}-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} - name: Install Chrome if: ${{ matrix.suite != 'chrome-bidi' }} run: npm run postinstall @@ -207,7 +207,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/chrome-canary - key: ${{ runner.os }}-Chrome-Canary-${{ hashFiles('package.json') }} + key: Chrome-Canary-${{ runner.os }}-${{ hashFiles('package.json') }} - name: Install Chrome Canary if: ${{ matrix.suite == 'chrome-bidi' }} id: browser @@ -297,7 +297,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/firefox - key: ${{ runner.os }}-firefox-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} + key: Firefox-${{ runner.os }}-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} - name: Install Firefox env: PUPPETEER_PRODUCT: firefox @@ -513,7 +513,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/chrome - key: ${{ runner.os }}-Chrome-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} + key: Chrome-${{ runner.os }}-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} - name: Install Chrome run: npm run postinstall - name: Build Schematics diff --git a/.github/workflows/deflake.yml b/.github/workflows/deflake.yml index 3f6c15faa7f..fe95c7ff515 100644 --- a/.github/workflows/deflake.yml +++ b/.github/workflows/deflake.yml @@ -70,7 +70,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/chrome - key: ${{ runner.os }}-Chrome-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} + key: Chrome-${{ runner.os }}-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} - name: Install Chrome if: ${{ inputs.suite != 'chrome-bidi' }} run: npm run postinstall @@ -79,7 +79,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/chrome-canary - key: ${{ runner.os }}-Chrome-Canary-${{ hashFiles('package.json') }} + key: Chrome-Canary-${{ runner.os }}-${{ hashFiles('package.json') }} - name: Install Chrome Canary if: ${{ inputs.suite == 'chrome-bidi' }} id: browser @@ -126,7 +126,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: ~/.cache/puppeteer/firefox - key: ${{ runner.os }}-firefox-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} + key: Firefox-${{ runner.os }}-${{ hashFiles('packages/puppeteer-core/src/revisions.ts') }}-${{ hashFiles('packages/puppeteer/src/node/install.ts') }} - name: Install Firefox env: PUPPETEER_PRODUCT: firefox