Skip to content

Commit 725d716

Browse files
committed
Added coveralls.io
1 parent c97122b commit 725d716

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ jobs:
131131
- name: Setup PHP, with composer and extensions
132132
uses: shivammathur/setup-php@v2
133133
with:
134-
php-version: 8.0
134+
php-version: 8.1
135135
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
136-
coverage: pcov
136+
coverage: xdebug
137137

138138
- name: Get composer cache directory
139139
id: composer-cache
@@ -149,8 +149,13 @@ jobs:
149149
- name: Install dependencies
150150
run: composer install --no-progress --prefer-dist --optimize-autoloader
151151

152-
- name: Coverage
152+
- name: Run phpunit
153+
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
154+
155+
- name: Upload coverage results to Coveralls
156+
env:
157+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153158
run: |
154-
./vendor/bin/phpunit --coverage-clover coverage-clover.xml
155-
composer global require scrutinizer/ocular
156-
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage-clover.xml
159+
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
160+
chmod +x php-coveralls.phar
161+
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2727
- Added PHPStan by @PowerKiKi in #2405
2828
- Bump symfony/process from 4.4.44 to 5.4.26 by @dependabot in #2431
2929
- Bump phpunit/phpunit from 9.6.8 to 9.6.10 by @dependabot in #2430
30+
- Added Changelog by @Progi1984 in #2452
3031

3132
## [1.1.0](https://github.com/PHPOffice/PHPWord/tree/1.1.0) (2023-05-30)
3233

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# ![PHPWord](https://rawgit.com/PHPOffice/PHPWord/develop/docs/images/phpword.svg "PHPWord")
22

33
[![Latest Stable Version](https://poser.pugx.org/phpoffice/phpword/v/stable.png)](https://packagist.org/packages/phpoffice/phpword)
4-
[![CI](https://github.com/PHPOffice/PHPWord/actions/workflows/ci.yml/badge.svg)](https://github.com/PHPOffice/PHPWord/actions/workflows/ci.yml)
5-
[![Code Quality](https://scrutinizer-ci.com/g/PHPOffice/PHPWord/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/PHPOffice/PHPWord/)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/PHPOffice/PHPWord/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/PHPOffice/PHPWord/)
4+
[![Coverage Status](https://coveralls.io/repos/github/PHPOffice/PHPWord/badge.svg?branch=master)](https://coveralls.io/github/PHPOffice/PHPWord?branch=master)
75
[![Total Downloads](https://poser.pugx.org/phpoffice/phpword/downloads.png)](https://packagist.org/packages/phpoffice/phpword)
86
[![License](https://poser.pugx.org/phpoffice/phpword/license.png)](https://packagist.org/packages/phpoffice/phpword)
7+
[![CI](https://github.com/PHPOffice/PHPWord/actions/workflows/ci.yml/badge.svg)](https://github.com/PHPOffice/PHPWord/actions/workflows/ci.yml)
98
[![Join the chat at https://gitter.im/PHPOffice/PHPWord](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/PHPOffice/PHPWord)
109

1110
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF), HTML, and PDF.

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@
2020
</exclude>
2121
</whitelist>
2222
</filter>
23+
<logging>
24+
<log type="coverage-html" target="./build/coverage" />
25+
<log type="coverage-clover" target="./build/logs/clover.xml" />
26+
</logging>
2327
</phpunit>

0 commit comments

Comments
 (0)