-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 888 Bytes
/
ci.yml
File metadata and controls
37 lines (30 loc) · 888 Bytes
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
36
37
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
PHPUnit:
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- '8.1'
- '8.2'
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- run: composer install --no-progress --prefer-dist --optimize-autoloader
- run: php vendor/bin/phpunit --configuration phpunit.xml --coverage-text
- run: php vendor/bin/phpunit --configuration phpunit.xml --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODE_COV_TOKEN }}
files: ./coverage.xml
verbose: true