-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (27 loc) · 885 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on: [ push, pull_request ]
jobs:
run-phpunit-tests:
name: Run PHPUnit with PHP Version
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.0, 8.1, 8.2, 8.3 ]
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@v3
with:
files: ./coverage.xml
verbose: true