cypress-io / cypress-example-circleci-orb

Demo of using the Cypress CircleCI Orb

Home Page:https://github.com/cypress-io/circleci-orb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress CircleCI Orb Example

CircleCI Cypress Dashboard renovate-app badge

Cypress CircleCI Orb

Introduction

This project installs npm dependencies, runs Cypress tests and records the output to the Cypress Dashboard on CircleCI. See .circleci/config.yml:

version: 2.1
orbs:
  cypress: cypress/cypress@dev:0.0.1
workflows:
  build:
    jobs:
      # record Cypress tests on the Dashboard
      - cypress/run:
          group: "all tests"
          record: true

Or you can run without recording on the dashboard:

version: 2.1
orbs:
  cypress: cypress/cypress@dev:0.0.1
workflows:
  build:
    jobs:
      - cypress/run

The hierarchy:

Workflow -> Jobs --> Commands -> define steps
             -> run on Executors

Development

  • Check if you are correctly using the Cypress CircleCI Orb in the .circleci/config.yml file by running npm run validate.
  • You can expand all commands from the orb and see how the "processed" .circleci/config.yml looks during the run on CircleCI. Execute npm run process to print the processed YAML in the terminal.

About

Demo of using the Cypress CircleCI Orb

https://github.com/cypress-io/circleci-orb


Languages

Language:JavaScript 54.3%Language:TypeScript 45.7%