Skip to content
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bdd545e
fix: git hub actions
AZabolotnikov Jul 25, 2025
7c47a88
feat: use separate job to upload coveralls results
DenTray Aug 11, 2025
f0ab26e
fix: send coverage report as artifact
DenTray Aug 11, 2025
9fe3250
fix: use correct path of coverage report
DenTray Aug 11, 2025
8803da4
fix: generate coverage report only for last php version
DenTray Aug 11, 2025
f9b799b
fix: generate coverage report only for last php version
DenTray Aug 11, 2025
6b34c7b
fix: use correct downloaded report path
DenTray Aug 11, 2025
f42d734
fix: use correct downloaded report path
DenTray Aug 11, 2025
31e3f95
fix: use correct uploaded report path
DenTray Aug 11, 2025
c30509e
fix: use correct uploaded report path
DenTray Aug 11, 2025
a8353ff
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
439a216
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
fce5613
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
1260b54
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
237f39a
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
ef2db3e
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
f85cfa8
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
07666ed
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
bbc8c4c
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
300e835
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
8fb1fbb
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
504770a
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
fe1dc99
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
d7253a6
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
4dbe6e5
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
6b680b1
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
f02361c
fix: install dependencies on send to coveralls
DenTray Aug 11, 2025
8872c29
chore: reformatting
DenTray Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 49 additions & 31 deletions .github/workflows/run-tests-with-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,55 @@
name: Run tests with coverage

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
tests-with-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ "8.2", "8.3", "8.4" ]
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug, pcov
tools: composer:v2
tests-with-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ "8.2", "8.3", "8.4" ]
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug, pcov
tools: composer:v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute unit tests via PHPUnit with coverage
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Export coverage report
if: ${{ matrix.php-version == '8.4' }}
uses: actions/upload-artifact@v4
with:
name: clover.xml
path: build/logs

- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute unit tests via PHPUnit with coverage
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
upload-to-coveralls:
needs: tests-with-coverage
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
tools: composer:v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: clover.xml
path: build/logs
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v --json_path=coveralls-upload.json