Skip to content

Commit

Permalink
Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Feb 28, 2024
1 parent 2be5834 commit aea41b5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/qit-environment-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,18 @@ jobs:
- name: Add "qit.test" to /etc/hosts
run: sudo echo "127.0.0.1 qit.test" | sudo tee -a /etc/hosts

- name: Start environment
- name: Start environment and get URL
run: |
URL=$(./qit env:up --json | jq -r '.url')
ENV_OUTPUT=$(./qit env:up --json)
if [ $? -ne 0 ]; then
echo "Failed to start environment"
echo "$ENV_OUTPUT"
exit 1
fi
echo "Raw environment output: $ENV_OUTPUT"
URL=$(echo "$ENV_OUTPUT" | jq -r '.url')
if [ -z "$URL" ] || [ "$URL" = "null" ]; then
echo "URL not found in environment output"
exit 1
fi
echo "ENV_URL=$URL" >> $GITHUB_ENV
Expand Down

0 comments on commit aea41b5

Please sign in to comment.