Skip to content

Commit 3015a57

Browse files
authored
Merge 3302507 into f995606
2 parents f995606 + 3302507 commit 3015a57

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

circle.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
version: 2.1
99
orbs:
1010
# use Cypress orb from CircleCI registry
11-
cypress: cypress-io/cypress@1.16.1
11+
cypress: cypress-io/cypress@1.23.0
1212
# for testing on Windows
1313
# https://circleci.com/docs/2.0/hello-world-windows/
1414
win: circleci/windows@1
@@ -58,6 +58,27 @@ jobs:
5858
- store_artifacts:
5959
path: cypress\videos
6060

61+
# let's see if the current HTML pages still work
62+
# against the tests in the latest Cypress version
63+
# if they work, then this project can be deployed safely
64+
test-html-against-test-runner:
65+
executor: cypress/base-12
66+
steps:
67+
- attach_workspace:
68+
at: ~/
69+
- run:
70+
name: Test HTML pages
71+
# note: need to scaffold Cypress files
72+
# https://github.com/cypress-io/cypress/issues/7554
73+
command: |
74+
mkdir /tmp/test-folder
75+
cd /tmp/test-folder
76+
npm init -y
77+
npm i -D cypress
78+
echo '{}' >> cypress.json
79+
echo "Testing existing pages"
80+
CYPRESS_INTERNAL_FORCE_SCAFFOLD=1 npx cypress run
81+
6182
release:
6283
executor: cypress/base-10
6384
steps:
@@ -158,6 +179,11 @@ workflows:
158179
group: '2x-firefox on CircleCI'
159180
start: 'npm run start:ci'
160181

182+
- test-html-against-test-runner:
183+
name: Test HTML against Test Runner
184+
requires:
185+
- Linux install
186+
161187
- release:
162188
filters:
163189
branches:

0 commit comments

Comments
 (0)