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 23, 2024
1 parent cf10497 commit e1e8950
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 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,25 @@ 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 test log
if: always()
run: sudo cat ./log/qubit_test.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 e1e8950

Please sign in to comment.