ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows

This commit is contained in:
Oscar Dominguez 2021-07-05 02:42:03 +02:00
parent 4b337272b7
commit 52ede626a0

View File

@ -3,13 +3,13 @@ name: Main workflow
on:
pull_request:
paths-ignore:
- '**.md'
- "**.md"
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'
- "**.md"
jobs:
build:
@ -22,9 +22,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Set Node.js 12
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
- run: npm ci
- run: npm run build
- run: npm run format-check
@ -82,11 +83,11 @@ jobs:
- name: Setup dotnet '3.1'
uses: ./
with:
dotnet-version: '3.1'
dotnet-version: "3.1"
- name: Setup dotnet '2.2'
uses: ./
with:
dotnet-version: '2.2'
dotnet-version: "2.2"
- name: Verify dotnet
shell: pwsh
run: __tests__/verify-dotnet.ps1 3.1 2.2