From a1f39aa02c66a41d5096a15c8d1eb5fc6f10e48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Sun, 16 Oct 2022 05:37:55 +0200 Subject: [PATCH] [TASK] Coveralls upload play-a-round due decline error messages This should work, but coveralls upload api keeps complaining with error ``` Client error occurred. status: 422 Unprocessable Entity Couldn't find a repository matching this job. ``` on pushes and thus pull-request pipeline runs. --- .github/workflows/codecoverage.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index e294763..676c284 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -18,9 +18,10 @@ jobs: with: php-version: "${{ matrix.php-version }}" extensions: xdebug, mysqli + tools: composer:v2.4 coverage: xdebug - name: "Set composer token" - run: "Build/Scripts/runTests.sh -p ${{ matrix.php-version }} -s composer -e 'config github-oauth.github.com ${{ github.token }}'" + run: "Build/Scripts/runTests.sh -p ${{ matrix.php-version }} -s composer -e 'config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}'" - name: "Show Composer version" run: "Build/Scripts/runTests.sh -t ${{ matrix.typo3-version }} -p ${{ matrix.php-version }} -s composer -e '--version'" - name: "Show the Composer configuration" @@ -44,11 +45,12 @@ jobs: - name: "Run functional tests with coverage" run: "Build/Scripts/runTests.sh -t ${{ matrix.typo3-version }} -p ${{ matrix.php-version }} -s functional -d mysql -a mysqli -j 8.0 -x -z 'coverage' -e '--whitelist Classes --coverage-php=.Build/coverage/functional.cov'" - name: "Merge coverage results" - run: "Build/Scripts/runTests.sh -t ${{ matrix.typo3-version }} -p ${{ matrix.php-version }} -s composer -e 'ci:coverage:merge'" + #run: "Build/Scripts/runTests.sh -t ${{ matrix.typo3-version }} -p ${{ matrix.php-version }} -s composer -e 'ci:coverage:merge'" + run: composer ci:coverage:merge - name: "Upload coverage results to Coveralls" env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./.Build/vendor/bin/php-coveralls --coverage_clover=./.Build/logs/clover.xml --json_path=./.Build/logs/coveralls-upload.json -v + run: ./.Build/vendor/bin/php-coveralls --coverage_clover=.Build/logs/clover.xml --json_path=.Build/logs/coveralls-upload.json -v strategy: fail-fast: false matrix: