Skip to content

Commit b1825cc

Browse files
author
David Hartmann
committed
github: (may be reverted after merge) ensures that cypress tests on master work in PR
1 parent 37950df commit b1825cc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/process-changes.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,26 @@ jobs:
6565
run: |
6666
git checkout PR-HEAD -- ./cypress
6767
68+
- name: Check file existence
69+
id: check_files
70+
run: |
71+
if test "py/visdom/server.py"; then
72+
echo '::set-output name=file_exists::true'
73+
else
74+
echo '::set-output name=file_exists::false'
75+
fi
76+
77+
- name: Cypress test:init
78+
if: steps.check_files.outputs.file_exists == 'true'
79+
uses: cypress-io/github-action@v2
80+
with:
81+
install: false
82+
start: python3 py/visdom/server.py -port 8098 -env_path /tmp
83+
wait-on: 'http://localhost:8098'
84+
spec: cypress/integration/*.init.js
6885
- name: Cypress test:init
6986
uses: cypress-io/github-action@v2
87+
if: steps.check_files.outputs.file_exists != 'true'
7088
with:
7189
install: false
7290
start: python3 py/visdom/server -port 8098 -env_path /tmp

0 commit comments

Comments
 (0)