Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: separate staging.yml for frontend and backend #1050

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

1WHISKY
Copy link

@1WHISKY 1WHISKY commented Oct 14, 2024

Separate staging.yml to staging_frontend.yml and staging_backend.yml
This allows us to use the "paths" parameter, so that changes to the frontend only run the frontend action and changes to the backend only run the backend action instead of running both.

Screenshots (if applicable)

Checks

  • !! DONT IGNORE ME !! I have ran nx run db:create-migration <name> and committed the migration if I've made DB schema changes
  • I have included/updated tests where applicable (see Testing)
  • I have followed semantic commit messages e.g. feat: Add foo, chore: Update bar, etc...
  • My branch has a clear history of changes that can be easy to follow when being reviewed commit-by-commit
  • My branch is functionally complete; the only changes to be done will be those potentially requested in code review
  • All changes requested in review have been fixuped into my original commits

Copy link
Member

@tsa96 tsa96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is seems okay, though I'm really not concerned about us re-deploying staging too often - it doesn't cost us anything, and brief staging outages are not a problem.

@Gocnak you should probably take a look at this as well.

Comment on lines 7 to 9
paths:
- "apps/backend/**"
- "apps/backend-e2e/**"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to code in /libs can affect both front and backend, this should use paths-ignore, and ignore /apps/frontend* and /scripts.

Comment on lines 7 to 9
paths:
- "apps/frontend/**"
- "apps/frontend-e2e/**"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

@1WHISKY
Copy link
Author

1WHISKY commented Oct 16, 2024

That will run both actions if you change something that is outside of these directories, which should be fine. Updated as requested.

@1WHISKY 1WHISKY requested a review from tsa96 October 16, 2024 23:18
@tsa96
Copy link
Member

tsa96 commented Oct 17, 2024

Yeah. Staging deploys don't cost us anything and I'd much rather we run these jobs when not necessary, than fail to run them when we should. We could exclude other files, but I don't want a maintenence burden of updating the that list.

@tsa96 tsa96 requested a review from Gocnak October 17, 2024 14:08
@tsa96
Copy link
Member

tsa96 commented Oct 17, 2024

Waiting for Nick to check this out, might take a bit, but this isn't high priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants