···11+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33+44+name: Unit tests
55+66+on:
77+ push:
88+ branches: [ master ]
99+ pull_request:
1010+ branches: [ master ]
1111+1212+jobs:
1313+ build:
1414+1515+ runs-on: ubuntu-latest
1616+1717+ steps:
1818+ - uses: actions/checkout@v2
1919+ - name: Use Node.js
2020+ uses: actions/setup-node@v1
2121+ with:
2222+ node-version: 14
2323+ - run: npm ci
2424+ - run: npm run build --if-present
2525+ - run: npm test