From aefa49fc34c8244942bb8e55ec82d62110c80bc1 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Sun, 18 Jul 2021 22:34:59 +0200 Subject: [PATCH] ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows --- .github/workflows/test.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d46a6c6..6531625 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,25 +3,25 @@ on: push: branches: - main - pull_request: - + pull_request: null jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + + - name: Set Node.JS + uses: actions/setup-node@v2 + with: + node-version: 12.x + cache: npm - - name: Set Node.JS - uses: actions/setup-node@v2 - with: - node-version: 12.x + - name: Install dependencies + run: npm install - - name: Install dependencies - run: npm install + - name: Build + run: npm run build - - name: Build - run: npm run build - - - name: Run tests - run: npm run test \ No newline at end of file + - name: Run tests + run: npm run test