mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-09 23:56:14 +01:00
[TASK] Switch to the Coveralls GitHub action (#1430)
Unfortunately, with the GitHub Action, we need to go back to using the path `build/logs/clover.xml` for the combined coverage file. Closes #1431
This commit is contained in:
parent
2b8fc34df4
commit
849087af95
3 changed files with 10 additions and 8 deletions
11
.github/workflows/codecoverage.yml
vendored
11
.github/workflows/codecoverage.yml
vendored
|
@ -75,12 +75,15 @@ jobs:
|
||||||
run: "ls -lahR .Build/coverage/"
|
run: "ls -lahR .Build/coverage/"
|
||||||
- name: "Merge coverage results"
|
- name: "Merge coverage results"
|
||||||
run: composer ci:coverage:merge
|
run: composer ci:coverage:merge
|
||||||
- name: "Show generated coverage files"
|
- name: "Show combined coverage files"
|
||||||
run: "ls -lahR .Build/coverage/"
|
run: "ls -lahR build/logs/"
|
||||||
- name: "Upload coverage results to Coveralls"
|
- name: "Upload coverage results to Coveralls"
|
||||||
|
uses: coverallsapp/github-action@v2
|
||||||
env:
|
env:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: .Build/bin/php-coveralls --coverage_clover=.Build/coverage/combined.xml --json_path=.Build/coverage/coveralls-upload.json -v
|
# Note: This is the only path that the Coveralls GitHub Action supports.
|
||||||
|
# So we cannot use something like .Build/coverage/clover.xml here.
|
||||||
|
file: build/logs/clover.xml
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,7 +5,7 @@
|
||||||
/.php-cs-fixer.cache
|
/.php-cs-fixer.cache
|
||||||
/.phpunit.result.cache
|
/.phpunit.result.cache
|
||||||
/Documentation-GENERATED-temp/
|
/Documentation-GENERATED-temp/
|
||||||
/clover.xml
|
/build
|
||||||
/composer.lock
|
/composer.lock
|
||||||
/generate-documentation.sh
|
/generate-documentation.sh
|
||||||
/nbproject
|
/nbproject
|
||||||
|
|
|
@ -51,7 +51,6 @@
|
||||||
"friendsofphp/php-cs-fixer": "^3.64.0",
|
"friendsofphp/php-cs-fixer": "^3.64.0",
|
||||||
"helmich/typo3-typoscript-lint": "^3.1.1",
|
"helmich/typo3-typoscript-lint": "^3.1.1",
|
||||||
"icanhazstring/composer-unused": "^0.8.11",
|
"icanhazstring/composer-unused": "^0.8.11",
|
||||||
"php-coveralls/php-coveralls": "^2.7.0",
|
|
||||||
"php-parallel-lint/php-parallel-lint": "^1.4",
|
"php-parallel-lint/php-parallel-lint": "^1.4",
|
||||||
"phpmd/phpmd": "^2.15.0",
|
"phpmd/phpmd": "^2.15.0",
|
||||||
"phpstan/extension-installer": "^1.4.2",
|
"phpstan/extension-installer": "^1.4.2",
|
||||||
|
@ -132,7 +131,7 @@
|
||||||
],
|
],
|
||||||
"ci:coverage:merge": [
|
"ci:coverage:merge": [
|
||||||
"@coverage:create-directories",
|
"@coverage:create-directories",
|
||||||
"@php tools/phpcov merge --clover=.Build/coverage/combined.xml .Build/coverage/"
|
"@php tools/phpcov merge --clover=build/logs/clover.xml .Build/coverage/"
|
||||||
],
|
],
|
||||||
"ci:coverage:unit": [
|
"ci:coverage:unit": [
|
||||||
"@coverage:create-directories",
|
"@coverage:create-directories",
|
||||||
|
@ -171,7 +170,7 @@
|
||||||
"ci:typoscript:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
"ci:typoscript:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
||||||
"ci:xliff:lint": "php Build/xliff/xliff-lint lint:xliff Resources/Private/Language",
|
"ci:xliff:lint": "php Build/xliff/xliff-lint lint:xliff Resources/Private/Language",
|
||||||
"ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' \\( -name '*.yaml' -o -name '*.yml' \\) | xargs -r php ./.Build/bin/yaml-lint",
|
"ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' \\( -name '*.yaml' -o -name '*.yml' \\) | xargs -r php ./.Build/bin/yaml-lint",
|
||||||
"coverage:create-directories": "mkdir -p .Build/coverage",
|
"coverage:create-directories": "mkdir -p .Build/coverage build/logs",
|
||||||
"docs:generate": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation",
|
"docs:generate": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation",
|
||||||
"fix:composer:normalize": "@composer normalize --no-check-lock",
|
"fix:composer:normalize": "@composer normalize --no-check-lock",
|
||||||
"fix:php": [
|
"fix:php": [
|
||||||
|
|
Loading…
Reference in a new issue