mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 14:56:14 +01:00
[FEATURE] Use Coveralls for the code coverage (#425)
Fixes #345 Closes #400
This commit is contained in:
parent
0a634def2d
commit
2e31910c61
5 changed files with 9 additions and 13 deletions
17
.github/workflows/codecoverage.yml
vendored
17
.github/workflows/codecoverage.yml
vendored
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
# This GitHub Actions workflow is calculating code coverage of extension and creates a badge for it.
|
# This GitHub Actions workflow calculates the code coverage of the extension and uploads it to coveralls.io.
|
||||||
name: Code coverage
|
name: Code coverage
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
code-coverage:
|
code-coverage:
|
||||||
name: "Calculate code coverage"
|
name: "Calculate code coverage"
|
||||||
|
@ -56,18 +57,10 @@ jobs:
|
||||||
composer ci:coverage:functional
|
composer ci:coverage:functional
|
||||||
- name: "Merge coverage results"
|
- name: "Merge coverage results"
|
||||||
run: composer ci:coverage:merge
|
run: composer ci:coverage:merge
|
||||||
- name: "Generate coverage badge"
|
- name: "Upload coverage results to Coveralls"
|
||||||
uses: timkrase/phpunit-coverage-badge@v1.2.0
|
|
||||||
with:
|
|
||||||
report: './build/logs/clover.xml'
|
|
||||||
coverage_badge_path: './coverage/badge.svg'
|
|
||||||
- name: "Commit PHPUnit coverage results"
|
|
||||||
uses: s0/git-publish-subdir-action@develop
|
|
||||||
env:
|
env:
|
||||||
REPO: self
|
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BRANCH: code-coverage-badge
|
run: ./.Build/vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
|
||||||
FOLDER: coverage
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,6 +7,7 @@
|
||||||
/Resources/Private/package-lock.json
|
/Resources/Private/package-lock.json
|
||||||
/Resources/Private/yarn-error.log
|
/Resources/Private/yarn-error.log
|
||||||
/Resources/Private/yarn.lock
|
/Resources/Private/yarn.lock
|
||||||
|
/build
|
||||||
/clover.xml
|
/clover.xml
|
||||||
/composer.lock
|
/composer.lock
|
||||||
/nbproject
|
/nbproject
|
||||||
|
|
|
@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
||||||
## x.y.z
|
## x.y.z
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
- Use Coveralls for the code coverage (#425)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Use the TYPO3 Code of Conduct (#430)
|
- Use the TYPO3 Code of Conduct (#430)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
[![TYPO3 V11](https://img.shields.io/badge/TYPO3-11-orange.svg)](https://get.typo3.org/version/11)
|
[![TYPO3 V11](https://img.shields.io/badge/TYPO3-11-orange.svg)](https://get.typo3.org/version/11)
|
||||||
[![GitHub CI status](https://github.com/TYPO3-Documentation/tea/workflows/CI/badge.svg?branch=main)](https://github.com/TYPO3-Documentation/tea/actions)
|
[![GitHub CI status](https://github.com/TYPO3-Documentation/tea/workflows/CI/badge.svg?branch=main)](https://github.com/TYPO3-Documentation/tea/actions)
|
||||||
[![GitLab CI status](https://gitlab.typo3.org/qa/example-extension/badges/main/pipeline.svg)](https://gitlab.typo3.org/qa/example-extension/-/pipelines)
|
[![GitLab CI status](https://gitlab.typo3.org/qa/example-extension/badges/main/pipeline.svg)](https://gitlab.typo3.org/qa/example-extension/-/pipelines)
|
||||||
[![Code Coverage Badge](https://github.com/TYPO3-Documentation/tea/blob/code-coverage-badge/badge.svg)](https://github.com/TYPO3-Documentation/tea/blob/code-coverage-badge/clover.xml)
|
[![Coverage Status](https://coveralls.io/repos/github/TYPO3-Documentation/tea/badge.svg?branch=main)](https://coveralls.io/github/TYPO3-Documentation/tea?branch=main)
|
||||||
[![Total downloads](https://poser.pugx.org/ttn/tea/downloads.svg)](https://packagist.org/packages/ttn/tea)
|
[![Total downloads](https://poser.pugx.org/ttn/tea/downloads.svg)](https://packagist.org/packages/ttn/tea)
|
||||||
[![License](https://poser.pugx.org/ttn/tea/license.svg)](https://packagist.org/packages/ttn/tea)
|
[![License](https://poser.pugx.org/ttn/tea/license.svg)](https://packagist.org/packages/ttn/tea)
|
||||||
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](CODE_OF_CONDUCT.md)
|
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](CODE_OF_CONDUCT.md)
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
"friendsofphp/php-cs-fixer": "^3.4.0",
|
"friendsofphp/php-cs-fixer": "^3.4.0",
|
||||||
"helmich/typo3-typoscript-lint": "^2.5.2",
|
"helmich/typo3-typoscript-lint": "^2.5.2",
|
||||||
"jangregor/phpstan-prophecy": "^1.0.0",
|
"jangregor/phpstan-prophecy": "^1.0.0",
|
||||||
|
"php-coveralls/php-coveralls": "^2.5.2",
|
||||||
"phpstan/extension-installer": "^1.1.0",
|
"phpstan/extension-installer": "^1.1.0",
|
||||||
"phpstan/phpstan": "^1.4.9",
|
"phpstan/phpstan": "^1.4.9",
|
||||||
"phpstan/phpstan-phpunit": "^1.0.0",
|
"phpstan/phpstan-phpunit": "^1.0.0",
|
||||||
|
|
Loading…
Reference in a new issue