Skip to content

Commit

Permalink
Merge 01bc552 into 7df3f85
Browse files Browse the repository at this point in the history
  • Loading branch information
yupmin committed Jan 9, 2023
2 parents 7df3f85 + 01bc552 commit 2c70825
Show file tree
Hide file tree
Showing 4 changed files with 23 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
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 2c70825

Please sign in to comment.