Skip to content

Commit 5c8fb3c

Browse files
committed
ci: Fix code coverage upload
1 parent 17fdc1e commit 5c8fb3c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/qa.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v6
25+
with:
26+
fetch-depth: 2
2527

2628
- name: Build docker image
2729
env: ${{ matrix.env }}
@@ -42,5 +44,7 @@ jobs:
4244
env: ${{ matrix.env }}
4345
if: ${{ env.COVERAGE_FILE }}
4446
run: |
45-
curl -sSOL https://scrutinizer-ci.com/ocular.phar
46-
docker run --rm -v $PWD:/msgpack -w /msgpack msgpack php ocular.phar code-coverage:upload --format=php-clover "$COVERAGE_FILE"
47+
docker run --rm -e COVERAGE_FILE -v $PWD:/msgpack -w /msgpack msgpack sh -lc '
48+
composer global require --no-progress --no-interaction scrutinizer/ocular:^1.9 >/dev/null &&
49+
"$(composer global config bin-dir --absolute)/ocular" code-coverage:upload --format=php-clover "$COVERAGE_FILE"
50+
'

0 commit comments

Comments
 (0)