Skip to content

Commit

Permalink
Update the CI workflow to use localhost.run instead of Serveo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrimari committed Dec 12, 2024
1 parent e9c3172 commit 927073a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/backend_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
timeout=30
start_time=$SECONDS
ssh -o "StrictHostKeyChecking no" -R 80:localhost:8000 serveo.net > serveo.log 2>&1 &
ssh -o "StrictHostKeyChecking no" -R 80:localhost:8000 [email protected] > localhost.log 2>&1 &
PID=$!
while true; do
sleep 1
echo "Checking if Serveo is up..."
if grep -q 'HTTP' "serveo.log"; then
echo "Checking if localhost is up..."
if grep -qP 'https://[a-f0-9]+\.lhr\.life' "localhost.log"; then
break
fi
if (( SECONDS - start_time >= timeout )); then
Expand All @@ -67,7 +67,7 @@ jobs:
fi
done
url=$(grep -oP 'https://[a-f0-9]+\.serveo\.net' "serveo.log")
url=$(grep -oP 'https://[a-f0-9]+\.lhr\.life' "localhost.log")
export APPLICATION_URL=$url
python3 manage.py test ./bittan/tests --exclude-tag=no_ci
Expand Down

0 comments on commit 927073a

Please sign in to comment.