Builds off of https://github.com/danielkwok21/learnMonorepo for monoreport portion
This repo would focus more on cypress
- Make a dummy commit and push
- Go to the
Actions
tab of this repo, or click https://github.com/danielkwok21/learnMonorepoCypress/actions - Observe a new job ran succesfully
- This job is the cypress test defined at ./cypress/e2e/spec.cy.js
Uses yarn workspace
Each application would no longer have
- node_modules
- git repo
All of these would be referred to the root's.
- Install
# cd to root
# Install cypress at root dependency
yarn add -W cypress
- Open cypress
yarn run cypress open
- Create a spec at ./cypress/e2e/spec.cy.js
- Create an action at ./.github/workflows/test.yml according to https://github.com/cypress-io/github-action
- git push to remote
- Go to https://github.com/danielkwok21/learnMonorepoCypress/actions
- Observe job being ran that runs cypress test