This might be a bit of a naive question but how can I configure this 2.1 version circleci file to run both cypress tests and jest unit tests.
At the moment I have this:
version: 2.1
orbs:
cypress: cypress-io/cypress@1
workflows:
build:
jobs:
- cypress/install:
build: "npm run build"
- cypress/run:
requires:
- cypress/install
start: "npm start"
I simply want to add a step that will run npm run test using node version 10 before the cypress tests and ideally use the package-lock.json file for ensure it's caching things. I've been trying with trial and error but I'm unsure how to integrate this alongside the orb setup.
Any help would be much appreciated.
Aucun commentaire:
Enregistrer un commentaire