Skip to content

Commit

Permalink
Add debugging output to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Oct 24, 2024
1 parent cf10497 commit 67e42ef
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
run: |
sudo sysctl -w vm.max_map_count=262144
docker compose up -d percona elasticsearch gearmand
- name: Set Keycloak Realm File env var
run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV
- name: Launch Keycloak service
run: |
docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down Expand Up @@ -102,11 +109,11 @@ jobs:
CYPRESS_BASE_URL: http://localhost
run: npx cypress run -b ${BROWSER,}

- name: Set Keycloak Realm File env var
run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV
- name: Launch Keycloak service
run: |
docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d
# - name: Set Keycloak Realm File env var
# run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV
# - name: Launch Keycloak service
# run: |
# docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d
- name: Wait for Keycloak to be Ready
run: |
echo "Waiting for Keycloak to be ready..."
Expand Down Expand Up @@ -142,8 +149,22 @@ jobs:
env:
BROWSER: ${{ matrix.browser }}
CYPRESS_VIDEO: false
CYPRESS_BASE_URL: http://localhost
CYPRESS_BASE_URL: http://127.0.0.1
run: npx cypress run --config-file cypress.config.oidc.js --browser ${BROWSER,}

- name: Ensure NGINX is Running
run: sudo systemctl status nginx
- name: Output NGINX error log
if: always()
run: sudo cat /var/log/nginx/error.log
- name: Output AtoM error prod log
if: always()
run: sudo cat ./log/qubit_prod.log
- name: Dump Keycloak log
if: always()
run: |
docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml logs keycloak
- name: Tear down services
if: always()
run: |
Expand Down

0 comments on commit 67e42ef

Please sign in to comment.