Cache NPM between test runs
This commit is contained in:
12
.github/workflows/browser-testing.yml
vendored
12
.github/workflows/browser-testing.yml
vendored
@@ -28,6 +28,18 @@ jobs:
|
||||
- name: Install Google Chrome
|
||||
run: sudo apt-get install google-chrome-stable
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules-browser-tests
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/browser/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Run Browser tests
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user