From 198b6bda11154d052b12ab19d41036bc10a65181 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Tue, 12 Oct 2021 21:03:58 +0200 Subject: [PATCH] ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows --- .github/workflows/testing.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2c38141fb..50682b13f 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -10,17 +10,18 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] node-version: [12.x, 14.x, 16.x] steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Installing Node ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - name: Installing dependencies - run: npm ci - - name: Installing gulp command line interface - run: npm install gulp-cli - - name: Testing Modernizr - run: npm test - - name: Sending Coverage - run: ./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/codecov --pipe + - name: Checkout code + uses: actions/checkout@v2 + - name: Installing Node ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: npm + - name: Installing dependencies + run: npm ci + - name: Installing gulp command line interface + run: npm install gulp-cli + - name: Testing Modernizr + run: npm test + - name: Sending Coverage + run: ./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/codecov --pipe