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

WMDP-195: Automatically run linting/formatting/tests in CI for PRs and merges to main #21

Merged
merged 14 commits into from
Sep 21, 2022

Conversation

chouinar
Copy link
Collaborator

@chouinar chouinar commented Sep 15, 2022

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

@chouinar chouinar marked this pull request as ready for review September 15, 2022 20:37
@chouinar chouinar changed the title Test commit WMDP-195: Automatically run linting/formatting/tests in CI for PRs and merges to main Sep 16, 2022
Copy link
Contributor

@rocketnova rocketnova left a 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?

.github/workflows/api-checks.yml Outdated Show resolved Hide resolved
@chouinar
Copy link
Collaborator Author

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

@chouinar chouinar merged commit 5aa4080 into main Sep 21, 2022
@chouinar chouinar deleted the chouinar/wmdp-195 branch September 21, 2022 14:20
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