Skip to content

Fix/dx 3674 improve test coverage #4

Fix/dx 3674 improve test coverage

Fix/dx 3674 improve test coverage #4

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: ArtiomTr/jest-coverage-report-action@v2
id: coverage
with:
test-script: npm test -- --coverage --testMatch="**/test/unit/**/*.spec.ts"
threshold: 95
output: report-markdown
coverage-file: reports/contentstack-delivery/coverage/coverage-summary.json
- uses: marocchino/sticky-pull-request-comment@v2
if: always()
with:
message: ${{ steps.coverage.outputs.report }}
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Unit Tests
path: /reports/contentstack-delivery/html
reporter: jest-html-reporters
fail-on-error: true