File tree Expand file tree Collapse file tree 5 files changed +117
-114
lines changed Expand file tree Collapse file tree 5 files changed +117
-114
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,57 @@ name: Unit-Test-CI
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ master, staging, development ]
66 pull_request :
7- branches : [ master ]
7+ branches : [ master, staging, development ]
88
99jobs :
1010 build-test :
1111 runs-on : ubuntu-latest
1212 permissions :
1313 contents : read
1414 pull-requests : write
15+ checks : write
1516 steps :
1617 - uses : actions/checkout@v3
18+ - name : Check working directory after checkout
19+ run : pwd
1720 - uses : actions/setup-node@v4
1821 with :
1922 node-version : ' 22.x'
20- - run : npm ci
23+ - name : Check working directory after setup-node
24+ run : pwd
25+ - name : Install dependencies
26+ run : |
27+ pwd
28+ npm ci
29+ - name : Download regions.json
30+ run : |
31+ pwd
32+ ls -la
33+ mkdir -p dist/lib
34+ pwd
35+ npm run download-regions
36+ pwd
37+ ls -la dist/lib/ || echo "dist/lib does not exist"
38+ if [ ! -f dist/lib/regions.json ]; then
39+ echo "Error: regions.json was not downloaded successfully"
40+ exit 1
41+ fi
42+ - name : Check working directory before tests
43+ run : |
44+ pwd
45+ ls -la
2146 - uses : ArtiomTr/jest-coverage-report-action@v2
2247 id : coverage-utils-js
48+ continue-on-error : true
2349 with :
2450 output : comment, report-markdown
51+ test-script : npm test
52+ skip-step : install
2553 - uses : marocchino/sticky-pull-request-comment@v2
54+ continue-on-error : true
55+ if : steps.coverage-utils-js.outputs.report != ''
2656 with :
2757 header : Contentstack Utils JS Coverage
2858 recreate : true
Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ fileignoreconfig:
33 ignore_detectors:
44 - filecontent
55- filename: package-lock.json
6- checksum: d55fde89f42bf080e243915bc5c3fd1d0302e1d11c0b14deb62fef3574c5ba56
6+ checksum: 54777ceb615ca49bc21baf255b1ee9781da7e2868ff3d4292a6715bcbed33196
77- filename: src/entry-editable.ts
88 checksum: 3ba7af9ed1c1adef2e2bd5610099716562bebb8ba750d4b41ddda99fc9eaf115
99- filename: .husky/pre-commit
1010 checksum: 5baabd7d2c391648163f9371f0e5e9484f8fb90fa2284cfc378732ec3192c193
1111- filename: src/endpoints.ts
1212 checksum: 721a1df93b02d04c1c19a76c171fe2748e4abb1fc3e43452e76fecfd8f384751
13+ - filename: package.json
14+ checksum: 033eb21070795be5b426183f52d784347110fcb724bc9f8d63f94898ac5f0086
You can’t perform that action at this time.
0 commit comments