Fixing setup job to run in cypress executor

This commit is contained in:
2022-11-15 19:27:53 -06:00
parent f9f346f063
commit 97a8205b6d

View File

@ -1,9 +1,9 @@
version: 2.1 version: 2.1
orbs: orbs:
cypress: cypress-io/cypress@1 cypress: cypress-io/cypress@2
jobs: commands:
setup: setup:
steps: steps:
- checkout - checkout
@ -15,10 +15,16 @@ jobs:
echo "@OWNER:registry=https://npm.pkg.github.com/" >> .npmrc echo "@OWNER:registry=https://npm.pkg.github.com/" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> .npmrc echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> .npmrc
jobs:
setup-job:
executor: cypress/base-10
steps:
- setup
workflows: workflows:
build: build:
jobs: jobs:
- setup: - setup-job:
context: [ qqq-maven-registry-credentials ] context: [ qqq-maven-registry-credentials ]
- cypress/install: - cypress/install:
build: 'npm run build' # run a custom app build step build: 'npm run build' # run a custom app build step