-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: setup quality checks #148
Open
OmarAlJarrah
wants to merge
18
commits into
main
Choose a base branch
from
OmarAlJarrah/configure-quality-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mohnoor94
requested changes
Jan 6, 2025
mohnoor94
approved these changes
Jan 7, 2025
Mohammad-Dwairi
approved these changes
Jan 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Situation
At the moment of creating the pull request, we have not yet setup quality checks on the repository.
Task
Setup quality checks with the following acceptance criteria:
Action
GitHub Action
We have created a new GitHub action that runs on each commit. The action will run all tests, and validate coverage threshold and code lint.
For coverage generated reports, even in case of coverage threshold violation, a report will still be generated and uploaded, where engineers can download it from the action run webpage. Look the artifacts section in the image below:
Coverage
We have modified the already existing configuration of
kover
to verify coverage generateHTML
reports.As agreed on with @Mohammad-Dwairi, we have setup the minimum coverage value to the current coverage state of the repository. The value shall be updated till we reach a
100
.Lint
We have used the ktlint-gradle plugin to trigger running ktlint verification on the repository. We have ignored any automatically generated files.
Testing
NaN
Results
Now the repository has rules that can verify certain qualities (tests are running, coverage is satisfied, code style is proper). These rules are run per push event.
Notes
Due to new lint rules proposal, we have run automatic linting on the repository, resulting in many files being changed. The only files that were modified manually are:
.github/workflows/code-quality-checks.yaml
code/build.gradle
code/tasks-gradle/lint.gradle
code/tasks-gradle/test.gradle