mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ci: make GitHub Actions cache easer to search for (#11800)
This commit is contained in:
parent
b7285fc24d
commit
f4760decdf
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
6
.github/workflows/deflake.yml
vendored
6
.github/workflows/deflake.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user