Skip to content

Commit 2df1802

Browse files
committed
Added coveralls.io
1 parent c97122b commit 2df1802

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
with:
134134
php-version: 8.0
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,11 @@ jobs:
149149
- name: Install dependencies
150150
run: composer install --no-progress --prefer-dist --optimize-autoloader
151151

152-
- name: Coverage
152+
- name: Upload coverage results to Coveralls
153+
if: matrix.php-version == '8.1'
154+
env:
155+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153156
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
157+
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
158+
chmod +x php-coveralls.phar
159+
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.

0 commit comments

Comments
 (0)