Skip to content

Added unit tests

Added unit tests #17

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- 'main'
jobs:
test-distribution:
name: Test build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build distribution file
run: npm run build
test-unit-tests:
name: Test unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run unit-tests
run: npm test