-
Notifications
You must be signed in to change notification settings - Fork 7
chore: add code coverage INTER-859 #103
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
10de2a5
chore: add code coverage
Orkuncakilkaya 87e0fac
chore(ci): change test branch name for coverage report workflow
Orkuncakilkaya b421467
chore(coverage): fix php version env
Orkuncakilkaya 3bc4ae7
chore(coverage): implement coverage report with docker
Orkuncakilkaya 4f38f59
chore(coverage): add docker-compose install step
Orkuncakilkaya 9414784
chore(coverage): add env creation step
Orkuncakilkaya dec411d
chore(template): use parentschema instead of parent for invalid prope…
Orkuncakilkaya bf03dd2
chore(coverage): add permissions for cov directory
Orkuncakilkaya dce75b6
chore(coverage-diff): use docker
Orkuncakilkaya 0ad5e24
chore(coverage-diff): test coverage diff
Orkuncakilkaya c9c75d2
chore(coverage): cleanup branches
Orkuncakilkaya 4876354
docs(readme): update coverage badge link
Orkuncakilkaya 444e1eb
chore(ci): use sha instead of version for 3rd party actions
Orkuncakilkaya 5549a02
chore(ci): try to run coverage result
Orkuncakilkaya a5cdb1f
chore(coverage-diff): implement custom coverage diff
Orkuncakilkaya 5f72fc0
chore(coverage-diff): update checkout step
Orkuncakilkaya 9190959
chore(coverage-diff): install requirements for base branch phpunit
Orkuncakilkaya 2e1fc62
chore(coverage-diff): update paths for diff check
Orkuncakilkaya 8a753f7
chore(coverage-diff): fix coverage message template
Orkuncakilkaya 1802475
chore(coverage-diff): use awk instead grep for calculating diff
Orkuncakilkaya 2bd23e1
chore(coverage-diff): update base calculation and message body
Orkuncakilkaya 79eb7e0
chore(coverage-diff): update diff calculation
Orkuncakilkaya c7d0a4d
chore(coverage-diff): fix path for clover destinations
Orkuncakilkaya 3e2b832
chore(coverage-diff): update diff with markdown result
Orkuncakilkaya 4561bdf
refactor: supress warnings for sealed
Orkuncakilkaya d06c244
Merge branch 'develop' into chore/code-coverage
Orkuncakilkaya e6d46e0
chore(coverage-diff): update diff base coverage calc and hide files s…
Orkuncakilkaya ca3cc8c
chore(coverage-diff): use markdown report as artifact
Orkuncakilkaya b9eb259
chore(coverage-diff): update combining markdown and comment format
Orkuncakilkaya f6b87e3
chore(coverage-diff): combine message with coverage message
Orkuncakilkaya 5b021e3
chore(coverage-diff): include all php files for coverage
Orkuncakilkaya 0bfb1b1
chore(coverage-diff): remove conditionals from markdown report
Orkuncakilkaya 71953b6
docs(contributing): add coverage report section
Orkuncakilkaya 7d8fed3
docs(contributing): add coverage report html section
Orkuncakilkaya b5239ef
docs(contributing): fix typos in coverage html section
Orkuncakilkaya f670f21
chore(coverage-diff): use relative path for coverage files
Orkuncakilkaya 6fcaae0
chore(coverage-diff): use gitkeep instead of using 777 perms
Orkuncakilkaya 3d81684
chore(coverage): coverage inside phpunit xml file
Orkuncakilkaya 0c5e9ac
chore(coverage): update folder permissions
Orkuncakilkaya e48c72a
chore(coverage-diff): remove git clean
Orkuncakilkaya b33758a
chore(coverage): update folder permissions
Orkuncakilkaya 8daa056
chore(coverage-diff): prettify overall coverage table
Orkuncakilkaya 630f3ab
chore(coverage-diff): prettify files coverage table
Orkuncakilkaya 78ec433
docs(contributing): add docker section alternative to run php locally
Orkuncakilkaya c3ef2ad
chore: test coverage report
Orkuncakilkaya 282e40d
chore(coverage-report): update docker user and group
Orkuncakilkaya 51747bd
chore(coverage-badge): format value for badge
Orkuncakilkaya 19caf40
chore(coverage-report): add no jekyll to the exclude list for clean
Orkuncakilkaya 9f4bd04
chore: update sha versions of 3rd party action versions
Orkuncakilkaya 63332de
refactor: rename coverage.php to more explaining name and add comment…
Orkuncakilkaya edbfd13
chore: cleanup branches for coverage actions
Orkuncakilkaya 8c60356
chore: use v4 instead of v3 for github builtin actions
Orkuncakilkaya 9170f82
chore: add jub summary for coverage diff
Orkuncakilkaya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 'coverage-report' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- coverage # remove before merge to main | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
coverage-report: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
ilfa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
php-version: 8.2 | ||
coverage: none | ||
tools: composer:v2 | ||
extensions: xdebug | ||
- name: Install Dependencies | ||
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist | ||
- uses: php-actions/phpunit@v3 | ||
ilfa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
php_version: "${{ matrix.php_version }}" | ||
bootstrap: vendor/autoload.php | ||
configuration: phpunit.xml.dist | ||
args: --coverage-xml cov/xml | ||
version: "9.3.0" | ||
- name: "Parse Coverage" | ||
run: "php ./coverage.php" | ||
- name: Create Coverage Badges | ||
uses: jaywcjlove/coverage-badges-cli@e07f25709cd25486855c1ba1b26da53576ff3620 | ||
with: | ||
source: cov/json/index.json | ||
output: htmlcov/badges.svg | ||
ilfa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@8817a56e5bfec6e2b08345c81f4d422db53a2cdc | ||
with: | ||
branch: gh-pages | ||
folder: htmlcov |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.