Skip to content

Commit 316632d

Browse files
author
Chandler Anderson
committed
Add debug step to check artifact contents in integration tests
1 parent 285ed16 commit 316632d

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,23 @@ jobs:
171171
with:
172172
name: npm-package
173173

174+
- name: Debug - Check artifact contents
175+
run: |
176+
echo "=== Checking downloaded artifact ==="
177+
TARBALL=$(ls *.tgz)
178+
echo "Tarball: $TARBALL"
179+
180+
# Extract and check the dist/index.js file
181+
mkdir -p /tmp/artifact-check
182+
tar -xzf "$TARBALL" -C /tmp/artifact-check
183+
184+
echo "First 10 lines of dist/index.js:"
185+
head -10 /tmp/artifact-check/package/dist/index.js
186+
187+
echo ""
188+
echo "Checking for .js extensions in imports:"
189+
grep "from './" /tmp/artifact-check/package/dist/index.js || echo "No relative imports found"
190+
174191
- name: Test 1 - Global npm install
175192
run: |
176193
echo "=== Testing global npm install scenario ==="

0 commit comments

Comments
 (0)