Skip to content

Commit 8c19173

Browse files
authored
Merge pull request #221 from contentstack/workflow-fix
chore: add debugging steps to CI workflow and update test command in …
2 parents 104c4b8 + 1dd575a commit 8c19173

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,34 @@ 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
2229
- name: Download regions.json
2330
run: |
31+
pwd
32+
ls -la
2433
mkdir -p dist/lib
34+
pwd
2535
npm run download-regions
36+
pwd
37+
ls -la dist/lib/ || echo "dist/lib does not exist"
2638
if [ ! -f dist/lib/regions.json ]; then
2739
echo "Error: regions.json was not downloaded successfully"
2840
exit 1
2941
fi
42+
- name: Check working directory before tests
43+
run: |
44+
pwd
45+
ls -la
3046
- uses: ArtiomTr/jest-coverage-report-action@v2
3147
id: coverage-utils-js
3248
continue-on-error: true

.talismanrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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",

0 commit comments

Comments
 (0)