Skip to content

Added unit tests

Added unit tests #20

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: Build webpack
run: npm run webpack
- name: Run unit-tests
run: npx ts-node test/unit-tests/runtime