-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 999 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
36
37
38
39
40
41
42
43
name: phpunit
on:
pull_request: {}
release: {}
push:
branches: [ master ]
jobs:
tests:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ 8.1, 8.2 ]
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- name: phpunit tests ${{ matrix.php-versions }}
uses: php-actions/phpunit@v3
with:
configuration: test/phpunit.xml
php_extensions: pcov
php_version: ${{ matrix.php-versions }}
version: 9.5
- name: coverage monitor
uses: slavcodev/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_path: test/clover.xml
comment_footer: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: test/clover.xml
name: github-ci
verbose: true