From 4ee20ad02f316efab869361bf3fec818bc5565f4 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 21 Sep 2023 06:13:06 +0900 Subject: [PATCH] chore: add hack to autoload.psr-4 --- .github/workflows/reusable-coveralls.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-coveralls.yml b/.github/workflows/reusable-coveralls.yml index f545d79bb5ec..a5dfc83996cb 100644 --- a/.github/workflows/reusable-coveralls.yml +++ b/.github/workflows/reusable-coveralls.yml @@ -57,7 +57,10 @@ jobs: run: composer update --ansi - name: Merge coverage files - run: vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov + run: | + jq '.autoload."psr-4" += {"Config\\": "app/Config/"}' composer.json > temp.json && mv temp.json composer.json + composer dump-autoload + vendor/bin/phpcov merge --clover build/logs/clover.xml build/cov - name: Upload coverage to Coveralls run: vendor/bin/php-coveralls --verbose --exclude-no-stmt --ansi