File tree Expand file tree Collapse file tree 5 files changed +42
-33
lines changed Expand file tree Collapse file tree 5 files changed +42
-33
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,41 @@ jobs:
1515 checks : write
1616 steps :
1717 - uses : actions/checkout@v3
18+ - name : Check working directory after checkout
19+ run : pwd
1820 - uses : actions/setup-node@v4
1921 with :
2022 node-version : ' 22.x'
21- - 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
2246 - uses : ArtiomTr/jest-coverage-report-action@v2
2347 id : coverage-utils-js
2448 continue-on-error : true
2549 with :
2650 output : comment, report-markdown
51+ test-script : npm test
52+ skip-step : install
2753 - uses : marocchino/sticky-pull-request-comment@v2
2854 continue-on-error : true
2955 if : steps.coverage-utils-js.outputs.report != ''
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,3 +10,5 @@ fileignoreconfig:
1010 checksum: 5baabd7d2c391648163f9371f0e5e9484f8fb90fa2284cfc378732ec3192c193
1111- filename: src/endpoints.ts
1212 checksum: 721a1df93b02d04c1c19a76c171fe2748e4abb1fc3e43452e76fecfd8f384751
13+ - filename: package.json
14+ checksum: 033eb21070795be5b426183f52d784347110fcb724bc9f8d63f94898ac5f0086
Original file line number Diff line number Diff line change 1- * @ contentstack/security-admin
1+ * @ contentstack/devex-pr-reviewers
2+
3+ .github /workflows /sca-scan.yml @ contentstack/security-admin
4+
5+ .github /workflows /codeql-anaylsis.yml @ contentstack/security-admin
6+
7+ ** /.snyk @ contentstack/security-admin
8+
9+ .github /workflows /policy-scan.yml @ contentstack/security-admin
10+
11+ .github /workflows /issues-jira.yml @ contentstack/security-admin
Original file line number Diff line number Diff line change 2121 "clear:reports" : " rm -rf reports" ,
2222 "clear:badges" : " rm -rf badges" ,
2323 "pretest" : " npm run build" ,
24- "test" : " npm run clear:reports && jest --ci --json --coverage --testLocationInResults --outputFile=./reports/report.json" ,
24+ "test" : " npm run clear:reports && pwd && jest --ci --json --coverage --testLocationInResults --outputFile=./reports/report.json" ,
2525 "test:badges" : " npm run clear:badges && npm run test && jest-coverage-badges --input ./reports/coverage/coverage-summary.json --output ./badges" ,
2626 "test:debug" : " jest --watchAll --runInBand" ,
2727 "prebuild" : " rimraf dist && mkdir -p dist/lib && npm run download-regions" ,
28- "download-regions" : " curl -s --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o dist/lib/regions.json || echo 'Warning: Failed to download regions.json'" ,
28+ "download-regions" : " curl -v --max-time 30 --fail https://artifacts.contentstack.com/regions.json -o dist/lib/regions.json || echo 'Warning: Failed to download regions.json'" ,
2929 "build" : " tsc && rollup -c" ,
3030 "format" : " prettier --write \" src/**/*.ts\" " ,
3131 "prepare" : " husky install && npm run build" ,
You can’t perform that action at this time.
0 commit comments