Skip to content

Add better error handling #44

Add better error handling

Add better error handling #44

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
paths:
- 'src/**/*'
- 'test/**/*'
- 'package.json'
- 'tsconfig.json'
pull_request:
branches:
- main
paths:
- 'src/**/*'
- 'test/**/*'
- 'package.json'
- 'tsconfig.json'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['22.x', '23.x']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run format check
run: npx prettier --check 'src/**/*.{ts,tsx,js,jsx}'
- name: Run tests
run: npm test