diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba21e844..46bf740a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -122,6 +122,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Cache NPM dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: @@ -131,4 +139,4 @@ jobs: run: npm clean-install - name: Test - run: npm test:ci + run: npm run test:ci