Skip to content

Commit 38392d9

Browse files
committed
Debugging nginx
1 parent ace9e8d commit 38392d9

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/oidc-integration-test.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- qa/**
77
- stable/**
8+
- dev/oidc-tests
89
jobs:
910
integration-tests:
1011
runs-on: ubuntu-20.04
@@ -106,6 +107,7 @@ jobs:
106107
sudo cp test/etc/worker_conf /usr/lib/systemd/system/atom-worker.service
107108
sudo systemctl daemon-reload
108109
sudo systemctl start atom-worker
110+
109111
- name: Install and configure Nginx
110112
run: |
111113
sudo apt install nginx
@@ -114,20 +116,37 @@ jobs:
114116
sudo rm -f /etc/nginx/sites-enabled/default
115117
sudo nginx -t
116118
sudo systemctl restart nginx
119+
117120
- name: Create writable Cypress videos and screenshots dirs
118121
run: |
119122
sudo mkdir -p ${{ github.workspace }}/cypress/screenshots ${{ github.workspace }}/cypress/videos
120123
sudo chmod a=rwx ${{ github.workspace }}/cypress/screenshots ${{ github.workspace }}/cypress/videos
124+
125+
- name: Ensure NGINX is Running
126+
run: sudo systemctl status nginx
127+
121128
- name: Run tests
122129
env:
123130
BROWSER: ${{ matrix.browser }}
124131
CYPRESS_VIDEO: false
125132
CYPRESS_BASE_URL: http://localhost
126133
run: npx cypress run --config-file cypress.config.oidc.js --browser ${BROWSER,}
127134

128-
- name: Output NGINX Error Log
135+
- name: Ensure NGINX is Running
136+
run: sudo systemctl status nginx
137+
138+
- name: Output NGINX error log
139+
if: always()
129140
run: sudo cat /var/log/nginx/error.log
130141

142+
- name: Output AtoM error test log
143+
if: always()
144+
run: sudo cat ./log/qubit_test.log
145+
146+
- name: Output AtoM error prod log
147+
if: always()
148+
run: sudo cat ./log/qubit_prod.log
149+
131150
- name: Tear down services
132151
if: always()
133152
run: |

0 commit comments

Comments
 (0)