Skip to content

Commit d2bbde7

Browse files
committed
feat(git): add coveralls to track repo coverage
1 parent d8560d9 commit d2bbde7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,13 @@ jobs:
217217
uses: shivammathur/setup-php@v2
218218
with:
219219
php-version: '8.3'
220+
extensions: xdebug
220221
- name: Install dependencies
221222
run: composer install --prefer-dist --no-progress
222-
- name: Run tests
223-
run: vendor/bin/phpunit || echo "No tests found"
223+
- name: Run tests and generate code coverage
224+
run: vendor/bin/phpunit || echo "No tests found"
225+
- name: Upload coverage to Coveralls
226+
uses: coverallsapp/github-action@v2
227+
with:
228+
github-token: ${{ secrets.GITHUB_TOKEN }}
229+
path-to-lcov: coverage/coverage.xml

0 commit comments

Comments
 (0)