-
Notifications
You must be signed in to change notification settings - Fork 1
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
WMDP-195: Automatically run linting/formatting/tests in CI for PRs and merges to main #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Question: Was this the PR you where you mentioned that we could re-use the same container?
We could potentially if we set that up, but it'll require a bit of tinkering with the makefile commands I think. Should we make that as a follow-up? docker/build-push-action#225 has the details on how to do it |
TODO - testing github actions
Ticket
https://wicmtdp.atlassian.net/browse/WMDP-195
Changes
Updated the api-checks file to run linting/formatting/tests when creating PRs and when merges to main happen.
Added bandit which looks for any security vulnerabilities present in your code.
Testing
Most of the testing can be seen here in the actions that ran against this PR.
Successful run: https://github.com/navapbc/wic-mt-demo-project-mock-api/actions/runs/3069343936
Run where I made a multi-head migration issue deliberately: https://github.com/navapbc/wic-mt-demo-project-mock-api/actions/runs/3069316636
Formatting issue: https://github.com/navapbc/wic-mt-demo-project-mock-api/actions/runs/3069295227