Skip to content

Commit

Permalink
Only build keycloak for API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Sep 13, 2023
1 parent 360c6ee commit b535430
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
PS_INSTALL_AUTO: 1
run: |
echo Build docker via docker composer
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build prestashop-git
echo Waiting for response from the FO
bash -c 'while [[ "$(curl -L -s -o /dev/null -w %{http_code} ${{ env.URL_FO }}en/)" != "200" ]]; do sleep 1; done'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
PS_INSTALL_AUTO: 0
run: |
echo Build docker via docker composer
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build prestashop-git
- name: Start sanity campaign
uses: ./custom_actions/.github/workflows/actions/run-tests
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test-with-prebuilt-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ jobs:
## Add self-signed certificate to Chrome Trust Store
mkcert -install
- name: Start keycloak service
if: inputs.test_command == 'functional:API'
working-directory: ${{ env.PS_DIR }}
run: |
echo Build keycloak service
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build keycloak
- name: Setup database
working-directory: ${{ env.PS_DIR }}
timeout-minutes: 5
Expand Down Expand Up @@ -120,7 +127,7 @@ jobs:
DISABLE_MAKE: 1
run: |
echo Build the remaining dockers
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build
USER_ID=$(id -u) GROUP_ID=$(id -g) docker-compose -f docker-compose.yml up -d --build prestashop-git
echo Waiting for response from the FO
bash -c 'while [[ "$(curl -L -s -o /dev/null -w %{http_code} ${{ env.URL_FO }}en/)" != "200" ]]; do sleep 5; done'
Expand Down

0 comments on commit b535430

Please sign in to comment.