From 927073a09179343aadfe5e1712273231b826de6e Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 12 Dec 2024 21:13:46 +0100 Subject: [PATCH] Update the CI workflow to use localhost.run instead of Serveo. --- .github/workflows/backend_test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend_test.yml b/.github/workflows/backend_test.yml index 88d593c..b5d3c87 100644 --- a/.github/workflows/backend_test.yml +++ b/.github/workflows/backend_test.yml @@ -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 nokey@localhost.run > 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 @@ -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