-
Notifications
You must be signed in to change notification settings - Fork 3
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
PLT-1360 - Configure Pronto/Simplecov code coverage in rlovelett-ffmpeg #22
Conversation
Introduced the 'coveralls_reborn' gem to the project and set it up within the test suite to track test coverage. Updated the README to include the Coveralls coverage status badge, ensuring visibility into the project's code coverage metrics. This change assists in maintaining and improving code quality. # Please note any issue or ticket numbers related to this change if applicable.
Add Coveralls Integration
Add autogenerated code for lcov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not requesting any changes for now, but want to see the output / result before approving! 😛
- name: Install Deps | ||
run: | | ||
apt update && apt install cmake -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to install cmake
for rubocop to run? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake
is for rugged - which is used by Pronto/Undercover to perform git operations
rainbow (>= 2.1, < 4.0) | ||
rugged (>= 0.27, < 1.7) | ||
unicode-display_width (2.5.0) | ||
uri (0.13.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof, that's a lot of new deps just for code coverage 😰
Need to turn on read & write permissions for actions in the repo. Asked @masterful to flip this on |
Always run pronto steps
Add write access to discussions in CI workflow
More permissions
Move bundle install
This reverts commit 0b6f319.
First implementation of Pronto code coverage, adding to
rlovelett-ffmpeg
first since it's open source and could be cloned outside the org for quick iteration.Action now adds inline PR comments for both Code coverage and Rubocop problems.
Github Copilot Description
This pull request primarily focuses on enhancing the continuous integration (CI) pipeline and improving code quality checks. The changes include updating the GitHub Actions workflow to trigger on both push and pull request events, adding permissions to the GitHub Actions workflow, updating the actions used in the workflow, and adding new dependencies to the Gemfile. Additionally, the SimpleCov and Undercover gems have been added for better code coverage tracking.
GitHub Actions workflow updates:
.github/workflows/ci.yaml
: The workflow now triggers on both push and pull request events, and additional permissions have been added for the GitHub Actions workflow. The actions used in the workflow have been updated to their latest versions, and additional dependencies have been added to the installation step. A new step has been added to setup and run Pronto for code quality checks during pull request events.Dependency additions:
Gemfile
: New dependencies have been added to the Gemfile, including the RuboCop Performance and RuboCop Rake gems for enhanced code quality checks, the Faraday Retry gem for retrying network requests, and the Pronto and Pronto RuboCop gems for running code quality checks. The Undercover gem has been added for tracking untested code sections, and the Rugged, SimpleCov, and SimpleCov-Lcov gems have been added to the test group for better code coverage tracking.Code coverage tracking:
spec/spec_helper.rb
: The SimpleCov and SimpleCov-Lcov gems have been required and configured for code coverage tracking. The Undercover gem has also been required for tracking untested code sections.