Skip to content

feat: add unit tests #1

feat: add unit tests

feat: add unit tests #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, develop]
push:
branches: [main]
jobs:
test-and-lint:
name: Test and Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Security audit
run: npm audit
- name: Run linting
run: npm run lint
- name: Run tests
run: npm run test:ci
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
coverage/
!coverage/lcov-report/**