This repository has been archived on 2024-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
react-component-form/.github/workflows/node.js.yml

35 lines
713 B
YAML
Raw Normal View History

2020-08-04 16:22:31 +02:00
name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2020-10-26 03:14:42 +01:00
node-version: [12.x, 14.x]
2020-08-04 16:22:31 +02:00
steps:
- uses: actions/checkout@v2
2020-10-29 17:03:19 +01:00
- name: 'Cache dependencies'
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
2020-08-04 16:22:31 +02:00
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.2
2020-08-04 16:22:31 +02:00
with:
node-version: ${{ matrix.node-version }}
- name: 'Install dependencies'
run: npm ci
- name: 'Run the tests'
run: npm test