Skip to content

Fix/dx 3674 improve test coverage #13

Fix/dx 3674 improve test coverage

Fix/dx 3674 improve test coverage #13

Workflow file for this run

name: 'TS SDK - Unit Testing'
on:
pull_request:
branches:
- development
- staging
- main
jobs:
coverage:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- name: Run unit tests with coverage
run: npm run test:unit
- name: Generate coverage report
uses: ArtiomTr/jest-coverage-report-action@v2
id: coverage
with:
threshold: 95
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Unit Tests
path: reports/contentstack-delivery/junit/*.xml
reporter: java-junit
fail-on-error: false