Skip to content

Commit

Permalink
upload code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed May 28, 2024
1 parent e0047f0 commit 8653f90
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [8.1, 8.2, 8.3]
include:
- php_version: 8.1
- php_version: 8.2
- php_version: 8.3
code_coverage: upload

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2 # Required by Scrutinizer (Ocular)

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

- name: Run tests
run: ./test.sh ${{ matrix.php_version }}
run: ./test.sh ${{ matrix.php_version }} ${{ matrix.code_coverage }}

- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
if: github.repository == 'mindplay-dk/sql' && matrix.code_coverage == 'upload'
with:
cli-args: "--format=php-clover test/build/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"

0 comments on commit 8653f90

Please sign in to comment.