-
-
Notifications
You must be signed in to change notification settings - Fork 52
31 lines (25 loc) · 763 Bytes
/
code_coverage.yaml
File metadata and controls
31 lines (25 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Code Coverage
on:
pull_request: null
push:
branches:
- main
jobs:
code_coverage:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
- uses: ramsey/composer-install@v3
- run: |
phpdbg -qrr -d memory_limit=-1 vendor/bin/phpunit --coverage-clover build/logs/clover.xml
# Coveralls.io
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
php php-coveralls.phar --verbose
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}