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

Add diff-check to catch missing Appraisal runs #2609

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

nickcharlton
Copy link
Member

If we forget to run bundle exec appraisal, which is not uncommon, it means we miss when the appraisal files change. This should catch it and fail the build, reporting back that they changed and hinting at what should be done.

https://github.com/nickcharlton/diff-check
https://nickcharlton.net/posts/diff-check-github-action

@nickcharlton
Copy link
Member Author

nickcharlton commented Jun 7, 2024

This puts an action I wrote a little while ago in, as I was waiting for a time it actually would fail correctly. I also found a bug in diff-check itself, which I've fixed on a branch and waiting to hear back if it solves things elsewhere too.

That said, we're seeing the Gemfile.lock change and I don't really understand why yet.

  • Change "demo" to "appraisal" in the workflow
  • Change diff-check branch away from fix-path
  • Figure out if Gemfile.lock changing is expected, or we need to ignore certain changes

@nickcharlton nickcharlton force-pushed the nc-add-diff-check-for-appraisal branch from febcf60 to 67de03d Compare August 16, 2024 09:16
@nickcharlton nickcharlton force-pushed the nc-add-diff-check-for-appraisal branch 2 times, most recently from 5112a10 to 83e32a6 Compare August 27, 2024 13:28
If we forget to run `bundle exec appraisal`, which is not uncommon, it
means we miss when the appraisal files change. This should catch it and
fail the build, reporting back that they changed and hinting at what
should be done.

https://github.com/nickcharlton/diff-check
https://nickcharlton.net/posts/diff-check-github-action
@nickcharlton nickcharlton force-pushed the nc-add-diff-check-for-appraisal branch from 6bd66c7 to 67dfb56 Compare September 2, 2024 13:39
@nickcharlton
Copy link
Member Author

After discovering some more weird behaviour in git diff, this is finally good to go, after being tested loads. Let's hope it actually works for real!

@nickcharlton nickcharlton merged commit e8db752 into main Sep 2, 2024
11 checks passed
@nickcharlton nickcharlton deleted the nc-add-diff-check-for-appraisal branch September 2, 2024 13:43
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.

1 participant