Skip to content

Commit

Permalink
Update puppeteer caching step in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Nov 28, 2023
1 parent 23601b3 commit f138b04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .github/actions/setup-node-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f138b04

Please sign in to comment.