-
Notifications
You must be signed in to change notification settings - Fork 47
35 lines (33 loc) · 981 Bytes
/
phpunit.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-coverage
on: [ push ]
jobs:
test-php:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
php-versions: [ "7.4", "8.0", "8.1" ]
phpunit-versions: [ "9" ]
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
with:
php_version: "${{ matrix.php-versions }}"
dev: yes
interaction: no
- name: PHPUnit Tests php
uses: php-actions/phpunit@v2
with:
version: "${{ matrix.phpunit-versions }}"
php_version: "${{ matrix.php-versions }}"
php_extensions: xdebug
bootstrap: vendor/autoload.php
configuration: phpunit.xml
args: --coverage-clover=coverage.xml --exclude-group local-only
env:
XDEBUG_MODE: coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml