Skip to content

Commit 8678412

Browse files
committed
Update workflows to improve PHPUnit execution and coverage
Standardized the PHPUnit run command in workflows for consistency and updated the badge path in the coverage workflow. Ensures accurate badge placement and streamlines test execution.
1 parent 3d68254 commit 8678412

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/php-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Install dependencies
4040
run: composer install --prefer-dist --no-progress
4141

42-
- name: Run PHPUnit
42+
- name: Run PhpUnit
4343
run: composer run-script ci-test
4444

4545
- name: Upload coverage report

.github/workflows/phpunit-coverage-badge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ jobs:
3636
- name: PHP Version
3737
run: php --version
3838

39+
- name: Run PhpUnit
40+
run: composer run-script ci-test
41+
3942
- name: Generate test coverage badge
4043
uses: timkrase/phpunit-coverage-badge@v1.2.1
4144
with:
42-
coverage_badge_path: 'badge-coverage.svg'
45+
coverage_badge_path: 'assets/badge-coverage.svg'
4346
push_badge: true
4447
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)