29 lines
658 B
YAML

name: Karma Tests
# Run on Pull Requests and pushes to main
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
# Job Setup
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 #Checkout Repo
- uses: actions/setup-node@v1 #Setup Node
with:
node-version: '18'
- name: Run Karma Tests
run: |
npm ci
npm run test