File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 3838 --health-interval 30s
3939 --health-timeout 5s
4040 --health-retries 5
41+ --health-cmd "curl -f http://localhost:8000/en-US/account/login || exit 1"
4142 --name splunk
4243 ports :
4344 - 8000:8000
8283 # cd test
8384 # rm -rf package-lock.json
8485 # npm install
86+ - name : Wait for Splunk Web UI to be fully ready
87+ run : |
88+ echo "Waiting for Splunk Web UI at http://localhost:8000/en-US/account/login"
89+ # Try for up to 60 * 5 = 300 seconds (5 minutes)
90+ for i in $(seq 1 60); do
91+ if curl -s -f http://localhost:8000/en-US/account/login; then
92+ echo "Splunk Web UI is ready!"
93+ exit 0
94+ fi
95+ echo "Splunk Web UI not ready yet, waiting 5 seconds... (Attempt $i/60)"
96+ sleep 5
97+ done
98+ echo "Error: Splunk Web UI did not become ready within 5 minutes."
99+ exit 1
85100
86101 - name : Cypress run
87102 uses : cypress-io/github-action@v6
92107 DEBUG : ' @cypress/github-action'
93108 ELECTRON_EXTRA_LAUNCH_ARGS : --disable-gpu
94109 with :
95- start : npm run test
110+ # start: npm run test
96111 wait-on : ' http://localhost:8000'
97112 # No videos can be recorded w/ ff as per https://github.com/cypress-io/cypress/issues/18415
98113 # browser: firefox
@@ -110,6 +125,7 @@ jobs:
110125 path : |
111126 test/cypress/videos
112127 test/cypress/screenshots
128+ if-no-files-found : ignore
113129
114130 # Add a job in the page to visualize test result reports
115131 - name : JUnit Report
You can’t perform that action at this time.
0 commit comments