I’m trying to use the Cypress Orb. The relevant section of my config is
commands:
restore_workspace:
description: 'Restore code, dependencies, and compiled assets from workspace'
steps:
- attach_workspace:
at: ~/repo
orbs:
cypress: cypress-io/cypress@1.8.0
workflows:
version: 2
build-test:
jobs:
- compile
- cypress/run:
executor: node_ruby_mysql_redis
pre-steps:
- restore_workspace
- run: ls -A1
- run: pwd
- yarn_install
- bundle_install
- ensure_runtime
requires:
- compile
start: RAILS_ENV=test RACK_ENV=test bundle exec puma -p 3000
wait-on: 'http://localhost:3000'
working_directory: ~/repo
yarn: true
The ls -A1
step emits nothing. The pwd
step emits /root/project
. I expect that attach_workspace
attaches to ~/repo
, though it doesn’t emit any debugging information, so I’m not sure. I don’t see /root/project
anywhere in the Cypress Orb source, so my hypothesis is that it comes from the CircleCI Orb framework.