Skip to content

Commit

Permalink
Moved php-coveralls to vendor-bin
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Nov 9, 2022
1 parent 61457a4 commit 42d6780
Show file tree
Hide file tree
Showing 8 changed files with 2,029 additions and 102 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,14 @@ jobs:
XDEBUG_MODE: ${{ matrix.xdebug_mode }}
run: ./vendor/phpunit/phpunit/phpunit -c phpunit.xml

- name: Install php Coveralls
working-directory: apps/${{ env.APP_NAME }}
if: matrix.xdebug_mode == 'coverage'
run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.3/php-coveralls.phar

- name: Upload coverage results to Coveralls
working-directory: apps/${{ env.APP_NAME }}
if: matrix.xdebug_mode == 'coverage'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: php-${{ matrix.php-versions }}
run: php php-coveralls.phar --coverage_clover=build/logs/clover.xml --json_path=build/logs/coveralls-upload.json -vvv
run: vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml --json_path=build/logs/coveralls-upload.json -vvv

finish-coverage:
needs: phpunit
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"nextcloud/ocp": "dev-master",
"roave/security-advisories": "dev-latest"
},
"config": {
Expand Down
97 changes: 96 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
<code>IRootFolder</code>
<code>IRootFolder</code>
</MissingDependency>
<UndefinedClass occurrences="1">
<code>Process</code>
</UndefinedClass>
</file>
<file src="lib/Service/SignFileService.php">
<MissingDependency occurrences="8">
Expand Down
5 changes: 5 additions & 0 deletions vendor-bin/php-coveralls/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"php-coveralls/php-coveralls": "^2.5"
}
}
Loading

0 comments on commit 42d6780

Please sign in to comment.