Skip to content

add autoloader check in CI#4502

Merged
mitchellhenke merged 1 commit intomasterfrom
mitchellhenke/run-zeitwerk-check-in-ci
Dec 10, 2020
Merged

add autoloader check in CI#4502
mitchellhenke merged 1 commit intomasterfrom
mitchellhenke/run-zeitwerk-check-in-ci

Conversation

@mitchellhenke
Copy link
Contributor

Runs bin/rails zeitwerk:check to ensure we are not doing anything that doesn't comply with the autoloader. This would ideally run during the lint step, but it requires some config to be set up (at least config/application.yml) so it gets run during tests after test setup.

I tested with a commit that introduces a bad class and it does fail on CI as expected.

Upgrade guide section that describes the rake task is here: link

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@mitchellhenke mitchellhenke merged commit 9cf6919 into master Dec 10, 2020
@mitchellhenke mitchellhenke deleted the mitchellhenke/run-zeitwerk-check-in-ci branch December 10, 2020 19:22
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