From bf4b741b58a38980015524339d6558a1005da992 Mon Sep 17 00:00:00 2001 From: Steve Breker Date: Wed, 9 Oct 2024 17:20:18 -0700 Subject: [PATCH] Debugging nginx --- .github/workflows/oidc-integration-test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oidc-integration-test.yml b/.github/workflows/oidc-integration-test.yml index c8a265be45..1f6b68918f 100644 --- a/.github/workflows/oidc-integration-test.yml +++ b/.github/workflows/oidc-integration-test.yml @@ -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 @@ -114,10 +115,15 @@ 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 }} @@ -125,7 +131,11 @@ jobs: 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: Tear down services