Skip to content

Merge pull request #186 from jankapunkt/dependabot/npm_and_yarn/rollu… #309

Merge pull request #186 from jankapunkt/dependabot/npm_and_yarn/rollu…

Merge pull request #186 from jankapunkt/dependabot/npm_and_yarn/rollu… #309

Workflow file for this run

name: Test suite
on:
push:
branches:
- master
- development
pull_request: # runs on all PR
jobs:
unittest:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16]
steps:
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache dependencies ${{ matrix.node }}
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm run test:coverage