From d721bb8f96c5394524a8cb544fd66e7eb6f6fea7 Mon Sep 17 00:00:00 2001 From: Emmanuel Ogbizi-Ugbe Date: Fri, 9 Oct 2020 06:56:18 -0400 Subject: [PATCH] ci: cache node modules --- .github/workflows/nodejs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c8b862d2..86121524 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -18,6 +18,12 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Cache + uses: actions/cache@v2 + with: + path: | + **/node_modules + key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} - name: Install run: | npm install @@ -29,7 +35,6 @@ jobs: CI: true run: | npm test -- --ci --coverage - ls -l './artifacts/coverage' - name: Build run: | npm run build