Skip to content

Added unit tests

Added unit tests #18

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- 'main'
jobs:
test-distribution:
name: Test distribution
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 bundle
run: npm run build
test-unit-tests:
name: Test unit-tests
runs-on: ubuntu-latest
env:
MORNINGSTAR_PASSWORD: ${{ secrets.MORNINGSTAR_PWD }}
MORNINGSTAR_USERNAME: ${{ secrets.MORNINGSTAR_USERNAME }}
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:unit-tests