diff --git a/circle.yml b/circle.yml index e6924300f..62d31e288 100644 --- a/circle.yml +++ b/circle.yml @@ -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 @@ -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: @@ -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: