We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6e7e4e commit 6746befCopy full SHA for 6746bef
1 file changed
.github/workflows/ci.yml
@@ -26,4 +26,13 @@ jobs:
26
cache: "npm"
27
- run: npm ci
28
- run: npm run build
29
- - run: npm run test
+ - name: Run tests (with debug tail on failure)
30
+ run: |
31
+ set -o pipefail
32
+ node --test dist/**/*.test.js > ci-test.log 2>&1 || {
33
+ echo "---- tail(ci-test.log) ----"
34
+ tail -n 200 ci-test.log || true
35
+ details=$(tail -n 60 ci-test.log | sed -e 's/%/%25/g' -e 's/\r/%0D/g' -e ':a;N;$!ba;s/\n/%0A/g')
36
+ echo "::error title=Node test failed::$details"
37
+ exit 1
38
+ }
0 commit comments