From 74a2256101c574d52118826d82bccf93d52b7dff Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 23 Aug 2024 18:23:57 +0200 Subject: [PATCH] [TASK] Use the default location for the coverage data response As this file will be written to `build/logs/`, create this directory before creating any coverage data. --- .github/workflows/codecoverage.yml | 2 +- .gitignore | 1 + composer.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index 5ae539a..1a86e53 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -80,7 +80,7 @@ jobs: - name: "Upload coverage results to Coveralls" env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: .Build/bin/php-coveralls --coverage_clover=.Build/coverage/combined.xml --json_path=.Build/coverage/coveralls-upload.json -v + run: .Build/bin/php-coveralls --coverage_clover=.Build/coverage/combined.xml -v strategy: fail-fast: false matrix: diff --git a/.gitignore b/.gitignore index 41dbb4a..30cadd0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /.php-cs-fixer.cache /.phpunit.result.cache /Documentation-GENERATED-temp/ +/build/ /clover.xml /composer.lock /generate-documentation.sh diff --git a/composer.json b/composer.json index 42f606e..b544d09 100644 --- a/composer.json +++ b/composer.json @@ -170,7 +170,7 @@ "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: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", "fix:composer:normalize": "@composer normalize --no-check-lock", "fix:php": [