blob: f37f419f78f89c27cfd0733e479cacc54dd64cee [file] [log] [blame]
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main, schema_validator ]
pull_request:
branches: [ main, schema_validator ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./schema
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- run: npm ci
- run: npm run validate