forked from ampproject/amp-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update puppeteer caching step in workflows
- Loading branch information
1 parent
23601b3
commit f138b04
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,21 @@ runs: | |
using: 'composite' | ||
steps: | ||
- name: Configure Node.js cache | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
id: node-npm-cache | ||
env: | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '5' | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/actions/setup-node-npm/action.yml') }} | ||
|
||
# Since it gets downloaded with npm install, we need to cache it instantly. | ||
- name: Setup puppeteer cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/puppeteer | ||
key: ${{ runner.os }}-puppeteer | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,12 +223,6 @@ jobs: | |
path: ~/.jest-cache | ||
key: ${{ runner.os }}-jest-e2e-${{ matrix.part }} | ||
|
||
- name: Setup puppeteer cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/puppeteer | ||
key: ${{ runner.os }}-puppeteer | ||
|
||
- name: Start Docker environment | ||
run: npm run env:start:ci | ||
env: | ||
|