Skip to content

Commit

Permalink
Merge 3302507 into f995606
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 23, 2020
2 parents f995606 + 3302507 commit 3015a57
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
version: 2.1
orbs:
# use Cypress orb from CircleCI registry
cypress: cypress-io/cypress@1.16.1
cypress: cypress-io/cypress@1.23.0
# for testing on Windows
# https://circleci.com/docs/2.0/hello-world-windows/
win: circleci/windows@1
Expand Down Expand Up @@ -58,6 +58,27 @@ jobs:
- store_artifacts:
path: cypress\videos

# let's see if the current HTML pages still work
# against the tests in the latest Cypress version
# if they work, then this project can be deployed safely
test-html-against-test-runner:
executor: cypress/base-12
steps:
- attach_workspace:
at: ~/
- run:
name: Test HTML pages
# note: need to scaffold Cypress files
# https://github.com/cypress-io/cypress/issues/7554
command: |
mkdir /tmp/test-folder
cd /tmp/test-folder
npm init -y
npm i -D cypress
echo '{}' >> cypress.json
echo "Testing existing pages"
CYPRESS_INTERNAL_FORCE_SCAFFOLD=1 npx cypress run
release:
executor: cypress/base-10
steps:
Expand Down Expand Up @@ -158,6 +179,11 @@ workflows:
group: '2x-firefox on CircleCI'
start: 'npm run start:ci'

- test-html-against-test-runner:
name: Test HTML against Test Runner
requires:
- Linux install

- release:
filters:
branches:
Expand Down

0 comments on commit 3015a57

Please sign in to comment.