Skip to content

Commit 9fb78e6

Browse files
committed
upload code coverage
1 parent d823a18 commit 9fb78e6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,26 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php_version: [8.1, 8.2, 8.3]
10+
include:
11+
- php_version: 8.1
12+
- php_version: 8.2
13+
- php_version: 8.3
14+
code_coverage: upload
1115

1216
steps:
1317
- name: Checkout code
1418
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 2 # Required by Scrutinizer (Ocular)
1521

1622
- name: Set up Docker Compose
1723
run: sudo apt-get update && sudo apt-get install -y docker-compose
1824

1925
- name: Run tests
2026
run: ./test.sh ${{ matrix.php_version }}
27+
28+
- name: Upload Scrutinizer coverage
29+
uses: sudo-bot/action-scrutinizer@latest
30+
if: github.repository == 'mindplay-dk/sql' && matrix.code_coverage == 'upload'
31+
with:
32+
cli-args: "--format=php-clover test/build/clover.xml"

0 commit comments

Comments
 (0)