Code coverage#110
Open
SimonZanta wants to merge 7 commits into
Open
Conversation
- Add coverage-badge.yml workflow triggered on push to master
- Runs Codeception with --coverage --coverage-xml
- Parses coverage % from Clover XML via PHP one-liner
- Updates GitHub Gist via schneegans/dynamic-badges-action
- Adds shields.io coverage badge to README.md (placeholder {GH_USER}/{GIST_ID})
Manual setup required:
- Create GitHub Gist with coverage.json file
- Create PAT with gist scope
- Add GIST_TOKEN and COVERAGE_GIST_ID secrets to repo
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add permissions: pages write + id-token write - Add --coverage-html to codecept run - Upload tests/_output/coverage/ as Pages artifact - Add deploy job using actions/deploy-pages@v4 Manual setup: Repo → Settings → Pages → Source: GitHub Actions URL: https://comgate-payments.github.io/sdk-php/ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Remove coverage-badge.yml (Gist + GitHub Pages approach) - Add coverage.yml: runs on push to master, uploads clover XML to Coveralls - Update README badge to Coveralls Manual setup: https://coveralls.io → enable repo → add COVERALLS_REPO_TOKEN secret Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Coverage on push to master is now handled by tests.yml directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add push: branches: master trigger for baseline coverage update - Checkout fallback for PR vs push events - Add coverallsapp/github-action@v2 step for coverage upload Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
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.
No description provided.