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

Check ruby test coverage before merging PRs #3244

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

unoduetre
Copy link
Contributor

@unoduetre unoduetre commented Jun 27, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

What

Set up automated checking of ruby test coverage by simplecov as a requirement before a PR can be merged. This can be done in two ways. Either a test can be added, which checks simplecov coverage or an additional step can be added to GitHub CI. Investigate which of those two approaches is easier to implement and implement it.

Why

We need to keep ruby code test coverage at 95% as indicated by simplecov in order to maintain the requirement of dependabot automerger.

Trello card

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3244 June 27, 2024 15:07 Inactive
@unoduetre unoduetre force-pushed the 2665-check-ruby-test-coverage-before-merging-prs branch from 8c6fd64 to b065e6f Compare June 27, 2024 15:15
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3244 June 27, 2024 15:15 Inactive
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3244 June 28, 2024 09:13 Inactive
@unoduetre unoduetre marked this pull request as ready for review June 28, 2024 09:19
@unoduetre unoduetre force-pushed the 2665-check-ruby-test-coverage-before-merging-prs branch from b72903a to 5b6fbf3 Compare June 28, 2024 11:15
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3244 June 28, 2024 11:15 Inactive
@unoduetre unoduetre merged commit 6203aa9 into main Jul 10, 2024
11 checks passed
@unoduetre unoduetre deleted the 2665-check-ruby-test-coverage-before-merging-prs branch July 10, 2024 09:27
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.

3 participants