Skip to content

Commit

Permalink
Debugging nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Oct 10, 2024
1 parent ace9e8d commit 38392d9
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/oidc-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- qa/**
- stable/**
- dev/oidc-tests
jobs:
integration-tests:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -106,6 +107,7 @@ jobs:
sudo cp test/etc/worker_conf /usr/lib/systemd/system/atom-worker.service
sudo systemctl daemon-reload
sudo systemctl start atom-worker
- name: Install and configure Nginx
run: |
sudo apt install nginx
Expand All @@ -114,20 +116,37 @@ jobs:
sudo rm -f /etc/nginx/sites-enabled/default
sudo nginx -t
sudo systemctl restart nginx
- name: Create writable Cypress videos and screenshots dirs
run: |
sudo mkdir -p ${{ github.workspace }}/cypress/screenshots ${{ github.workspace }}/cypress/videos
sudo chmod a=rwx ${{ github.workspace }}/cypress/screenshots ${{ github.workspace }}/cypress/videos
- name: Ensure NGINX is Running
run: sudo systemctl status nginx

- name: Run tests
env:
BROWSER: ${{ matrix.browser }}
CYPRESS_VIDEO: false
CYPRESS_BASE_URL: http://localhost
run: npx cypress run --config-file cypress.config.oidc.js --browser ${BROWSER,}

- name: Output NGINX Error Log
- 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: Tear down services
if: always()
run: |
Expand Down

0 comments on commit 38392d9

Please sign in to comment.