From 759b81ff640d912424d0fbda785fbfae1cc3b0c1 Mon Sep 17 00:00:00 2001 From: Richard Hallows Date: Tue, 28 Sep 2021 02:27:11 +0100 Subject: [PATCH] Update workflow (#199) --- .github/workflows/nodejs.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e8491e6..0b3c034 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,27 +9,20 @@ on: branches: - '**' -env: - CI: true - jobs: lint: - name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }} - - runs-on: ${{ matrix.os }} + name: Lint - strategy: - matrix: - node: [12] - os: [ubuntu-latest] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node }} + node-version: 'lts/*' + cache: npm - name: Install latest npm run: npm install --global npm@latest @@ -48,16 +41,17 @@ jobs: strategy: fail-fast: false matrix: - node: [10, 12] + node: [12, 14, 16] os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} + cache: npm - name: Install latest npm run: npm install --global npm@latest