Skip to content

Commit

Permalink
Merge e6d2562 into 7df3f85
Browse files Browse the repository at this point in the history
  • Loading branch information
yupmin committed Jan 9, 2023
2 parents 7df3f85 + e6d2562 commit 1c0db34
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: coverage.xml
json_path: coveralls.json
18 changes: 16 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,19 @@ jobs:
- name: Check code style
run: ./vendor/bin/phpcs
- name: Testing
run: ./vendor/bin/phpunit

run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: php-${{ matrix.php-version }}
run: ./vendor/bin/php-coveralls --coverage_clover=coverage.xml -v
coveralls-finish:
needs: [testing]
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ composer.lock
nbproject
tmp/
vendor/
.phpunit.result.cache
.phpunit.result.cache
coverage.xml
coveralls.json
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Total Downloads](https://poser.pugx.org/yupmin/modern-phystrix/downloads)](https://packagist.org/packages/yupmin/modern-phystrix)
[![License](https://poser.pugx.org/yupmin/modern-phystrix/license)](https://packagist.org/packages/yupmin/modern-phystrix)
[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)
[![Coverage Status](https://coveralls.io/repos/github/yupmin/phystrix/badge.svg?branch=master)](https://coveralls.io/github/yupmin/phystrix?branch=master)

## Requirement

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7",
"php-di/php-di": "^6.4"
"php-di/php-di": "^6.4",
"php-coveralls/php-coveralls": "^2.5"
},
"extra": {
"branch-alias": {
Expand Down

0 comments on commit 1c0db34

Please sign in to comment.