From d8875e4f6977239db07f641b46aa745b707fc11b Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Mon, 5 Jul 2021 01:48:57 +0200 Subject: [PATCH 1/2] ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows --- .github/workflows/ci.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6497489..d998d06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,16 +3,16 @@ name: CI on: push: paths-ignore: - - '*.md' - - 'LICENSE' - - 'index.d.ts' + - "*.md" + - "LICENSE" + - "index.d.ts" branches: - master pull_request: paths-ignore: - - '*.md' - - 'LICENSE' - - 'index.d.ts' + - "*.md" + - "LICENSE" + - "index.d.ts" branches: - master @@ -26,17 +26,18 @@ jobs: nodejs: [10, 12, 14] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.nodejs }} + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.nodejs }} + cache: npm - - name: Install - run: npm ci + - name: Install + run: npm ci - - name: Linter - if: matrix.os != 'windows-latest' - run: npm run lint + - name: Linter + if: matrix.os != 'windows-latest' + run: npm run lint - - name: Test - run: npm test + - name: Test + run: npm test From a6b7e545249b4ac70ca4f4e333ccfa377b01fd2f Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Mon, 5 Jul 2021 12:42:37 +0200 Subject: [PATCH 2/2] style(workflow): restore single quoted strings --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d998d06..dc02175 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,16 +3,16 @@ name: CI on: push: paths-ignore: - - "*.md" - - "LICENSE" - - "index.d.ts" + - '*.md' + - 'LICENSE' + - 'index.d.ts' branches: - master pull_request: paths-ignore: - - "*.md" - - "LICENSE" - - "index.d.ts" + - '*.md' + - 'LICENSE' + - 'index.d.ts' branches: - master