Skip to content

Merge pull request #259 from spring-media/TRAC-2189_cerberus_workflow… #804

Merge pull request #259 from spring-media/TRAC-2189_cerberus_workflow…

Merge pull request #259 from spring-media/TRAC-2189_cerberus_workflow… #804

Workflow file for this run

# This workflow will do a clean install of node dependencies, 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: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: NPM install
run: npm ci
- name: Check code quality
run: npm run lint
- name: Run Tests
if: ${{ success() }}
run: npm run test