Skip to content

Commit 276e6c2

Browse files
committed
Update Makefile
1 parent 8db99a6 commit 276e6c2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,11 @@ phpbench:
209209
.PHONY: phpbench-baseline
210210
phpbench-baseline:
211211
XDEBUG_MODE=off tests/vendor/bin/phpbench run --dump-file=tests/bench/storage/local-baseline.xml
212+
213+
download-coverage:
214+
rm -rf tmp/coverage-download
215+
mkdir tmp/coverage-download
216+
(cd tmp/coverage-download; gh run download `gh run ls --repo=phpstan/phpstan-src --branch=\`git for-each-ref --format='%(upstream:short)' $$(git symbolic-ref -q HEAD) |cut -d/ -f2\` --workflow=tests.yml --limit=1 --json=databaseId --jq '.[].databaseId'` --repo=phpstan/phpstan-src --name=coverage-reports)
217+
sed -i '' -e 's,/home/runner/work/phpstan-src/phpstan-src/,'"$$PWD"/',g' tmp/coverage-download/clover.xml
218+
cp tmp/coverage-download/clover.xml tmp/coverage/clover.xml
219+

0 commit comments

Comments
 (0)