This repository was archived by the owner on Mar 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 44workflows :
55 build :
66 jobs :
7+ # install and cache dependencies in this job
8+ # AND build the library once
9+ # then the workspace will be passed to other jobs
710 - cypress/install :
811 name : Install 📦
912 build : npm run transpile
@@ -15,14 +18,22 @@ workflows:
1518 name : Linting code 🧹
1619 command : npm run lint
1720
21+ # the test job automatically attaches the workspace
22+ # created by the install job, so it is ready to test
1823 - cypress/run :
1924 name : Test 🧪
2025 requires :
2126 - Install 📦
27+ # notice a trick to avoid re-installing dependencies
28+ # in this job - a do-nothing "install-command" parameter
2229 install-command : echo 'Nothing to install in this job'
30+ # we are not going to use results from this job anywhere else
2331 no-workspace : true
2432 record : false
2533
34+ # this job attaches the workspace left by the install job
35+ # so it is ready to run Cypress tests
36+ # only we will run semantic release script instead
2637 - cypress/run :
2738 name : NPM release 🚀
2839 # we need newer Node for semantic release
You can’t perform that action at this time.
0 commit comments