Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new test job #421

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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