aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-30 22:41:49 +0200
committern-peugnet <n.peugnet@free.fr>2020-04-30 22:41:49 +0200
commit4cc8d4b92ae6d3b49372ae7f26b8f8468a8c16b5 (patch)
tree967d4efc9f9cea6e812ee4895423bce0bbff2d45
parent1f8fdcabeaa3151037954d556537f8fba4488b2c (diff)
downloadwcms-4cc8d4b92ae6d3b49372ae7f26b8f8468a8c16b5.tar.gz
wcms-4cc8d4b92ae6d3b49372ae7f26b8f8468a8c16b5.zip
tests: use codecov instead of coveralls
coveralls didn't properly aggregated the coverage results from all the builds.
-rw-r--r--.github/workflows/php.yml12
-rw-r--r--README.md8
2 files changed, 10 insertions, 10 deletions
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
index 039daca..6172685 100644
--- a/.github/workflows/php.yml
+++ b/.github/workflows/php.yml
@@ -45,12 +45,12 @@ jobs:
make test
echo "::remove-matcher owner=phpunit::"
- - name: Coveralls publish
- env:
- COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- composer require --quiet --no-interaction cedx/coveralls
- vendor/bin/coveralls build/phpunit/cov.xml
+ - name: Codecov upload
+ uses: codecov/codecov-action@v1
+ with:
+ file: ./build/phpunit/cov.xml
+ flags: php
+ name: php-${{ matrix.php-versions }}
lint:
name: lint
diff --git a/README.md b/README.md
index 58de3b7..4d0786e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# W-CMS
-[![checks][github]][action] ![style][codestyle] ![phpstan][phpstan] [![coverage][coverage]][coveralls]
+[![checks][github]][action] ![style][codestyle] ![phpstan][phpstan] [![coverage][coverage]][codecov]
W is a lightweight CMS tool, meant to help you design a website using a unique approach. It's targeting artists, or experimental projects.
@@ -183,9 +183,9 @@ Then, to make the release, run the following command:
To only build the release zip, simply run `make dist`. This will create a zip file in `dist/` of the current version.
-[github]: https://github.com/vincent-peugnet/wcms/workflows/checks/badge.svg
+[github]: https://img.shields.io/github/workflow/status/vincent-peugnet/wcms/checks/master?label=checks
[action]: https://github.com/vincent-peugnet/wcms/actions?query=branch%3Amaster+workflow%3Achecks
[codestyle]: https://img.shields.io/badge/code%20style-PSR12-brightgreen
[phpstan]: https://img.shields.io/badge/phpstan-level%205-green
-[coverage]: https://coveralls.io/repos/github/vincent-peugnet/wcms/badge.svg?branch=master
-[coveralls]: https://coveralls.io/github/vincent-peugnet/wcms?branch=master \ No newline at end of file
+[coverage]: https://img.shields.io/codecov/c/gh/vincent-peugnet/wcms
+[codecov]: https://codecov.io/gh/vincent-peugnet/wcms