Skip to content

Commit

Permalink
ci: test CTFd connection on setup endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Jun 1, 2024
1 parent a75ec69 commit bfc236b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
max_attempts=60
base_url="http://localhost:8000"
for ((i=0; i<$max_attempts; i++)); do
if curl --head --fail --silent --show-error "$base_url" >/dev/null; then
if curl --fail "$base_url/setup"; then
echo "Server is up and running!"
break
else
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Setup CTFd
uses: ctfer-io/ctfd-setup@dc0b1f042a99b5a4abc04e69e850f483ca139557 # v1.1.8
with:
url: http://localhost:8000
url: 'http://localhost:8000'
appearance_name: TFP-CTFd
appearance_description: Terraform Provider CTFd.
mode: teams
Expand Down

0 comments on commit bfc236b

Please sign in to comment.