Skip to content

Set up proper test suite with Jest #3

Set up proper test suite with Jest

Set up proper test suite with Jest #3

Workflow file for this run

name: Test Suite
on:
# Run on pull requests
pull_request:
branches: [ main, master ]
paths:
- 'src/**'
- 'package.json'
- 'tsconfig.json'
- '.github/workflows/test.yml'
# Allow manual trigger from Actions tab
workflow_dispatch:
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test