Skip to content

Update phpstan/phpstan requirement from ^1.10 to ^1.10 || ^2.0 #57

Update phpstan/phpstan requirement from ^1.10 to ^1.10 || ^2.0

Update phpstan/phpstan requirement from ^1.10 to ^1.10 || ^2.0 #57

Workflow file for this run

name: CI
on: [ pull_request ]
jobs:
run-phpunit-tests:
name: Run PHPUnit with PHP Version
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.1, 8.2, 8.3, 8.4 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install ocrmypdf via APT
run: |
sudo apt-get update
sudo apt-get install -y ocrmypdf
- name: Install Composer dependencies
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
- name: Invoke PHPUnit with Code Coverage
run: php -dxdebug.mode=coverage ./vendor/phpunit/phpunit/phpunit --coverage-clover ./coverage.xml --configuration ./phpunit.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}