@@ -25,46 +25,46 @@ jobs:
2525 snjs :
2626 image : standardnotes/snjs:${{ inputs.snjs_image_tag }}
2727 ports :
28- - 9001:9001
28+ - 9001:9001
2929
3030 steps :
31- - uses : actions/checkout@v4
31+ - uses : actions/checkout@v4
3232
33- - name : Set up Node
34- uses : actions/setup-node@v4
35- with :
36- registry-url : ' https://registry.npmjs.org'
37- node-version-file : ' .nvmrc'
33+ - name : Set up Node
34+ uses : actions/setup-node@v4
35+ with :
36+ registry-url : ' https://registry.npmjs.org'
37+ node-version-file : ' .nvmrc'
3838
39- - name : Install
40- run : yarn install --immutable
39+ - name : Install
40+ run : yarn install --immutable
4141
42- - name : Run Server
43- run : docker compose -f docker-compose.ci.yml up -d
44- env :
45- DB_TYPE : mysql
46- CACHE_TYPE : redis
47- SERVICE_PROXY_TYPE : ${{ matrix.service_proxy_type }}
42+ - name : Run Server
43+ run : docker compose -f docker-compose.ci.yml up -d
44+ env :
45+ DB_TYPE : mysql
46+ CACHE_TYPE : redis
47+ SERVICE_PROXY_TYPE : ${{ matrix.service_proxy_type }}
4848
49- - name : Output Server Logs to File
50- run : docker compose -f docker-compose.ci.yml logs -f > logs/docker-compose.log 2>&1 &
51- env :
52- DB_TYPE : mysql
53- CACHE_TYPE : redis
54- SERVICE_PROXY_TYPE : ${{ matrix.service_proxy_type }}
49+ - name : Output Server Logs to File
50+ run : docker compose -f docker-compose.ci.yml logs -f > logs/docker-compose.log 2>&1 &
51+ env :
52+ DB_TYPE : mysql
53+ CACHE_TYPE : redis
54+ SERVICE_PROXY_TYPE : ${{ matrix.service_proxy_type }}
5555
56- - name : Wait for server to start
57- run : docker/is-available.sh http://localhost:3123 $(pwd)/logs
56+ - name : Wait for server to start
57+ run : docker/is-available.sh http://localhost:3123 $(pwd)/logs
5858
59- - name : Run E2E Test Suite
60- run : yarn dlx mocha-headless-chrome --timeout 3600000 -a no-sandbox -a disable-setuid-sandbox -f http://localhost:9001/mocha/test.html?suite=${{ inputs.suite }}
59+ - name : Run E2E Test Suite
60+ run : yarn dlx mocha-headless-chrome --timeout 3600000 --polling 1000 -a no-sandbox -a disable-setuid-sandbox -f http://localhost:9001/mocha/test.html?suite=${{ inputs.suite }}
6161
62- - name : Archive failed run logs
63- if : ${{ failure() }}
64- uses : actions/upload-artifact@v4
65- with :
66- name : self-hosted-failure-logs-${{ inputs.suite }}
67- retention-days : 5
68- path : |
69- logs/*.err
70- logs/*.log
62+ - name : Archive failed run logs
63+ if : ${{ failure() }}
64+ uses : actions/upload-artifact@v4
65+ with :
66+ name : self-hosted-failure-logs-${{ inputs.suite }}
67+ retention-days : 5
68+ path : |
69+ logs/*.err
70+ logs/*.log
0 commit comments