Json Schema Upgraded to 0.4.0 to address CVE-2021-3918 #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node: [18, 16] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: checkout | |
uses: actions/checkout@v1 | |
- name: Get npm cache directory | |
id: npm-cache | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.npm-cache.outputs.dir }} | |
key: ${{ matrix.platform }}-node-${{ matrix.node }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ matrix.platform }}-node-${{ matrix.node }} | |
- name: install deps | |
run: npm install | |
- name: run tests | |
run: npm run test | |
if: matrix.node == 16 # Only run unit test on node 16, more at: https://github.com/facebook/jest/issues/11438 | |
- name: build library | |
run: npm run build --ws --if-present |