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 5ea40b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/oidc-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,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,18 +115,26 @@ 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
run: sudo cat /var/log/nginx/error.log

- name: Tear down services
Expand Down

0 comments on commit 5ea40b4

Please sign in to comment.