Skip to content

Merge pull request #199 from ConorMurphy21/minor-fixes #528

Merge pull request #199 from ConorMurphy21/minor-fixes

Merge pull request #199 from ConorMurphy21/minor-fixes #528

# 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:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- run: npm install
working-directory: ./
- run: npm run test:typecheck
working-directory: ./
- run: npm run test:lint
working-directory: ./
- run: npm run test:unit
working-directory: ./