Skip to content

Commit

Permalink
💚 refs #31 Waiting for the docker container to spin up
Browse files Browse the repository at this point in the history
  • Loading branch information
vcampitelli committed Feb 27, 2024
1 parent 9e6a74d commit 57be161
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up FusionAuth
working-directory: .github/fusionauth
run: docker compose up -d

- name: Validate composer.json and composer.lock
run: composer validate

Expand All @@ -27,13 +31,11 @@ jobs:
restore-keys: |
${{ runner.os }}-php-
- name: Set up FusionAuth
working-directory: .github/fusionauth
run: docker compose up -d

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Waiting for FusionAuth App
run: timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9011)" != "200" ]]; do sleep 5; done' || false

- name: Run test suite
run: composer run test

0 comments on commit 57be161

Please sign in to comment.