Skip to content

Commit c9c8426

Browse files
Exit with 1 if webhook setup failed
1 parent 15e2c44 commit c9c8426

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ jobs:
4444

4545
- name: Run tests
4646
run: |
47-
WEBHOOK_SERVER_URL="$(grep -o 'https://[^ ]*' tunnel.log | head -n 1)"
48-
if [ -z "$WEBHOOK_SERVER_URL" ]; then
47+
PUBLIC_URL="$(grep -o 'https://[^ ]*' tunnel.log | head -n 1)"
48+
if [ -z "$PUBLIC_URL" ]; then
4949
echo "Failed to setup localtunnel!"
50+
cat tunnel.log
51+
exit 1
5052
fi
51-
uv run pytest
53+
echo "Webhook URL: $PUBLIC_URL"
54+
WEBHOOK_SERVER_URL="$PUBLIC_URL" uv run pytest
5255
env:
5356
FISHJAM_ID: ${{ secrets.CI_FISHJAM_ID }}
5457
FISHJAM_MANAGEMENT_TOKEN: ${{ secrets.CI_FISHJAM_MANAGEMENT_TOKEN }}

0 commit comments

Comments
 (0)