I am using workflows to run my tests, and I’m trying to use an orb inside my job as one of the steps (see below the cypress/run step) but it seems that this isn’t the way to run them and they need to run as their own job
version: 2.1
orbs:
cypress: cypress-io/cypress@1
jobs:
build:
working_directory: ~/project
docker:
- image: circleci/node:12
- image: verdaccio/verdaccio:4
steps:
- checkout
- run:
name: npm-publish
command: npm publish --verbose
- run:
name: install
command: |
cd __tests__/__e2e__
npm install
npm install cypress-social-logins --save --verbose
- cypress/run:
working_directory: __tests__/__e2e__
workflows:
version: 2.1
project:
jobs:
- build
- somethingElse
however, I want that cypress job to run in the context of that whole build job because I’m spinning a container service that I need running (verdaccio) and I have the workspace directory at a specific state