Skip to content

Commit

Permalink
[Actions] Handle npm logs
Browse files Browse the repository at this point in the history
  • Loading branch information
magicjar committed Oct 14, 2024
1 parent 7b49d03 commit 35cda7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ts-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,22 @@ jobs:
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
npm ci || { echo "NPM install failed. Check logs."; exit 1; }
- name: Run compile
run: npm run compile-all

- name: Run test
run: npm run test

- name: Upload npm debug log
if: failure()
uses: actions/upload-artifact@v4
with:
name: npm-debug-logs
path: ~/.npm/_logs/*.log

- name: Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down

0 comments on commit 35cda7e

Please sign in to comment.