PhilanthropyDataCommons / auth

PDC related extensions that were made for the keycloak auth service
1 stars 1 forks source link

Set up linting #4

Open jasonaowen opened 1 year ago

jasonaowen commented 1 year ago

We should set up CI to run unit tests and a linter.

Part of this is deciding on a style guide for our linter. It's been a few years, but I think the most recent CheckStyle configuration I used was on the PSM: https://github.com/SolutionGuidance/psm/blob/master/psm-app/checkstyle.xml . I think my opinions on Java style are less strongly held now than they were then, though, so maybe we should just use the Google configuration?

This Stack Overflow answer shows how to configure CheckStyle with Google checks in Gradle.

bickelj commented 1 year ago

Things still needed for a CI/CD pipeline for twilio-keycloak-provider

At a higher level:

jasonaowen commented 1 year ago

That's a comprehensive list; thanks, @bickelj!

I was imagining that this issue would only be for tracking work on CI, and not on CD - that is, running tests and linting, and not versioning and publishing! In case that helps this feel less overwhelming. :smiley:

bickelj commented 1 year ago

@jasonaowen Suppose we repurpose/rename this one to adding linting since the test run workflows (admittedly perhaps inappropriately) pushed with #3 and create the others by name as well?

jasonaowen commented 1 year ago

Yes, I had imagined linting as being a part of this, but I should have more explicitly said so!