Skip to content

Fix skipped tests and improve testing infrastructure (#22) #33

Fix skipped tests and improve testing infrastructure (#22)

Fix skipped tests and improve testing infrastructure (#22) #33

Workflow file for this run

name: Run Tests
on:
pull_request:
branches: [ main ]
paths:
- 'src/**'
- 'tests/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'jest.config.js'
push:
branches: [ main ]
paths:
- 'src/**'
- 'tests/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- 'jest.config.js'
jobs:
test:
runs-on: ubuntu-latest
name: Run All Tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type checking
run: npm run typecheck
- name: Run all tests
run: npm test -- --coverage --watchAll=false
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false