lerna-yarn-test
What's in the repo
The repo uses Lerna with Yarn Workspaces. It includes 2 Serverless services and 1 shared package in the following structure:
/packages
/logger
/services
/users
/posts
The users
service has the logger
package as a dependency, whereas the posts
service does not.
Expected behavior
- If a change is made in
posts
, only theposts
service will be deployed on git push. Theusers
service will be skipped. - If a change is made in
users
, only theusers
service will be deployed on git push. Theposts
service will be skipped. - If a change is made in
logger
, only theusers
service will be deployed on git push. Theposts
service will be skipped.
Test
Start by forking the repo and adding it to your Seed account.
Case 1
- Successfully deploy it once
- Make a change in
packages/logger/index.js
and git push - Check that the
users
service is deployed - Check that the
posts
service is skipped
Case 2
- Make a change in
services/posts/handler.js
and git push - Check that the
users
service is skipped - Check that the
posts
service is deployed
Case 3
- Make a change in
seed.yml
and git push - Check that both the
users
andposts
services are deployed