Skip to content

chore(deps): update dependency phpstan/phpstan to v1.12.8 #214

chore(deps): update dependency phpstan/phpstan to v1.12.8

chore(deps): update dependency phpstan/phpstan to v1.12.8 #214

name: Code Coverage
on:
pull_request:
push:
paths:
- '!.github/**'
- '.github/workflows/coverage-report.yaml'
branches:
- main
jobs:
php-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
COMPOSER_NO_INTERACTION: 1
name: Code Coverage Report
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: pcov
ini-values: zend.assertions=1
tools: composer:v2,flex
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Execute Unit Tests
run: composer test:coverage
- if: ${{ github.event_name == 'pull_request' }}
name: Download artifact
uses: dawidd6/action-download-artifact@v6
continue-on-error: true
with:
workflow: .github/workflows/coverage-report.yaml # this file
branch: main
name: coverage-report
path: coverage/base
- if: ${{ github.event_name != 'pull_request' }}
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/clover.xml
- name: Coverage Report as Comment (Clover)
if: ${{ github.event_name == 'pull_request' }}
uses: lucassabreu/comment-coverage-clover@main
with:
file: coverage/clover.xml
base-file: coverage/base/clover.xml
with-chart: false
with-branches: false