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

Added static analysis step to the CI. #170

Open
wants to merge 6 commits into
base: 1.x
Choose a base branch
from
Open

Conversation

rupertj
Copy link
Member

@rupertj rupertj commented May 9, 2024

No description provided.

@finnlewis
Copy link
Member

Thanks for this @rupertj

I understand from @willguv that we're aiming to bring localgov_publications into the default core localgov installation.

With that in mind, it would be good to be consistent in our testing across the repositories.

@millnut is currently working on setting up shared workflows, specifically with the aim of pulling in consistent workflows across the board, so it would be great to get input from @millnut on this pull request.

Also flagging for @stephen-cox too... should we be aiming to be consistent with https://github.com/localgovdrupal/localgov_project/blob/3.x/.github/workflows/test.yml in the short term?

Might we want to add some of these changes to localgov_project?

@millnut
Copy link
Member

millnut commented May 19, 2024

Hi @rupertj if you could update this to use the new shared workflow that would be great. I've added an example to the localgov/localgov_alert_banner.

I know on Slack we discussed the possibility of modules having a higher PHPStan level vs the default level and I'm all for this, especially with the Drupal Core plans to increase this level in future.

What I think would be good is creating a PR at https://github.com/localgovdrupal/localgov_shared_workflows to add an optional input for the workflow, something like use_module_phpstan_config or similar which would allow you to use a module-level config.

Copy link
Member

@stephen-cox stephen-cox left a comment

Choose a reason for hiding this comment

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

As @millnut has mentioned, I think we're going to move all Github testing config to use https://github.com/localgovdrupal/localgov_shared_workflows/blob/1.x/.github/workflows/test-module.yml, so I suggest moving the change to the workflow there.

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.

None yet

4 participants