Skip to content

5.2.4

5.2.4 #100

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
karma:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['10.x', '12.x', '14.0']
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
id: npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.lock') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm ci
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: npm test