Cache NPM between test runs
This commit is contained in:
12
.github/workflows/screenshots.yml
vendored
12
.github/workflows/screenshots.yml
vendored
@@ -19,6 +19,18 @@ jobs:
|
||||
with:
|
||||
go-version: '1.18.8'
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules-screenshots
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/screenshots/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Automate screenshots
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user