-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 861 Bytes
/
unit-test.yml
File metadata and controls
27 lines (27 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: JS SDK - Unit Testing
on:
pull_request:
branches:
- master
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
id: coverage-core
with:
output: comment, report-markdown
- uses: marocchino/sticky-pull-request-comment@v2
if: always()
with:
message: ${{ steps.coverage-core.outputs.report }}
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: JEST Tests
path: reports/contentstack-js-core/junit/jest-*.xml
reporter: jest-junit
fail-on-error: true