Skip to content

Commit 604249d

Browse files
Copilotmariuz
andcommitted
Add Firebird log display on test failure in CI
When tests fail in CI, display the last 100 lines of the Firebird server log to help with debugging. This includes: - Firebird log from /firebird/log/firebird.log - Docker container status - Docker container logs (last 50 lines) The step only runs when previous steps fail (using if: failure() condition) Co-authored-by: mariuz <18359+mariuz@users.noreply.github.com> Agent-Logs-Url: https://github.com/hgourvest/node-firebird/sessions/fe3ce41f-13f1-48f8-b28c-966edff92fe6
1 parent a9451f0 commit 604249d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,21 @@ jobs:
7373
run: |
7474
export FIREBIRD_DATA=/firebird/data
7575
npm test
76+
77+
- name: Show Firebird log on failure
78+
if: failure()
79+
run: |
80+
echo "=========================================="
81+
echo "Firebird Server Log (last 100 lines):"
82+
echo "=========================================="
83+
docker exec firebird tail -n 100 /firebird/log/firebird.log || echo "Could not read firebird.log"
84+
echo ""
85+
echo "=========================================="
86+
echo "Docker container status:"
87+
echo "=========================================="
88+
docker ps -a
89+
echo ""
90+
echo "=========================================="
91+
echo "Docker container logs:"
92+
echo "=========================================="
93+
docker logs firebird --tail 50

0 commit comments

Comments
 (0)