File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 5151 run : |
5252 cd apl-core
5353 npm install
54- npm run server > /dev/null 2>&1 &
54+ npm run server > $GITHUB_WORKSPACE/core.log 2>&1 &
5555 - name : Start api
5656 run : |
5757 npm install
5858 cp .env.sample .env
59- npm run dev
59+ npm run dev > $GITHUB_WORKSPACE/api.log 2>&1 &
60+ - name : Wait for api
61+ run : |
62+ echo "Waiting for API to be ready..."
63+ while ! curl -s -f -o /dev/null http://localhost:8080/v2/builds; do
64+ sleep 10
65+ done
66+ echo "API is ready!"
67+ - name : Show logs
68+ run : |
69+ echo "::group::Core Server Logs"
70+ cat $GITHUB_WORKSPACE/core.log || echo "No core log found"
71+ echo "::endgroup::"
72+
73+ echo "::group::API Logs"
74+ cat $GITHUB_WORKSPACE/api.log || echo "No api log found"
75+ echo "::endgroup::"
You can’t perform that action at this time.
0 commit comments