Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

ci(workflow): add cache to workflows using actions/setup-node #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci(workflow): add 'npm' cache for actions/setup-node in .github/workf…
…lows
  • Loading branch information
oscard0m committed Jul 5, 2021
commit 67ba4caf03ce1c7cfdbd5822f9b57a0fceb2758e
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, and test
run: |
npm ci
npm test
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: npm ci, and test
run: |
npm ci
npm test