Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Coveralls #114

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: 'xdebug'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -115,4 +116,12 @@ jobs:
2024-01-25-develop.json

- name: Run phpunit
run: ./vendor/bin/phpunit
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover build/clover.xml

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
chmod +x php-coveralls.phar
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# QANightlyResults

[![Github Action PHP](https://github.com/PrestaShop/QANightlyResults/actions/workflows/php.yml/badge.svg)](https://github.com/PrestaShop/QANightlyResults/actions/workflows/php.yml)
[![Coverage Status](https://coveralls.io/repos/github/PrestaShop/QANightlyResults/badge.svg?branch=develop)](https://coveralls.io/github/PrestaShop/QANightlyResults?branch=develop)

QANightlyResults is a Symfony app, acting as a backend (via a JSON API) to handle and browse tests reports records.

You can use any frontend app you want to consume this API. We use a [Vue app](https://github.com/PrestaShop/nightly-board).
Expand Down
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
<server name="SYMFONY_PHPUNIT_VERSION" value="9.6" />
</php>

<source>
<include>
<directory>src</directory>
</include>
</source>

<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
Expand Down
Loading