1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 16:58:26 -04:00

use actions/setup-node@v2

This commit is contained in:
Jake Jarvis 2021-01-02 12:43:32 -05:00
parent 0d397577dc
commit 55e4269f5e
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 10 additions and 4 deletions

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/

View File

@ -11,14 +11,20 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node: [14.x, 12.x, 10.x]
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- 14
- 12
- 10
fail-fast: false
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: npm install and test