Skip to content

Commit c1c9930

Browse files
ci: make coveralls work again (#280)
1 parent 91fd918 commit c1c9930

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ jobs:
7979

8080
- name: Upload coverage results to Coveralls
8181
if: matrix.calculate-code-coverage == true
82-
env:
83-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84-
COVERALLS_PARALLEL: true
85-
COVERALLS_FLAG_NAME: "PHP ${{ matrix.php }} + Composer@${{ matrix.composer-flags || '*' }}"
86-
run: bin/php-coveralls -v --exclude-no-stmt
82+
uses: coverallsapp/github-action@v2
83+
with:
84+
github-token: ${{ secrets.GITHUB_TOKEN }}
85+
fail-on-error: false
86+
base-path: ./var/logs/test-coverage/
87+
flag-name: "PHP ${{ matrix.php }} + Composer@${{ matrix.composer-flags || '*' }}"

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@
4343
"doctrine/dbal": "~2.10||~3.0||~4.0"
4444
},
4545
"require-dev": {
46+
"deptrac/deptrac": "^3.0",
4647
"doctrine/orm": "~2.14||~3.0",
4748
"ekino/phpstan-banned-code": "^1.0",
4849
"friendsofphp/php-cs-fixer": "^3.72.0",
49-
"php-coveralls/php-coveralls": "^2.7.0",
5050
"phpstan/phpstan": "^1.12.21",
5151
"phpstan/phpstan-phpunit": "^1.4.2",
5252
"phpunit/phpunit": "^10.5.45",
53-
"qossmic/deptrac": "^2.0.4",
5453
"rector/rector": "^1.2.10",
5554
"symfony/cache": "^6.4||^7.0"
5655
},
@@ -76,7 +75,7 @@
7675
"phpunit --configuration='./ci/phpunit/config.xml'"
7776
],
7877
"run-tests-with-clover": [
79-
"phpunit --configuration='./ci/phpunit/config.xml' --coverage-clover './build/logs/clover.xml'"
78+
"phpunit --configuration='./ci/phpunit/config.xml' --coverage-clover './var/logs/test-coverage/clover.xml'"
8079
]
8180
},
8281

0 commit comments

Comments
 (0)