forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.08 KB
/
coverage.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
name: Coverage
on:
pull_request: ~
push:
branches:
- 5.3
tags:
- 5.3.*
permissions: read-all
jobs:
coverage:
name: Codecov
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
coverage: pcov
- name: Checkout
uses: actions/checkout@v3
- name: Install the dependencies
run: composer install --no-interaction --no-progress
- name: Generate the coverage report
run: php -d pcov.enabled=1 vendor/bin/phpunit --testsuite=coverage --coverage-clover=clover.xml
- name: Upload the coverage report
uses: codecov/codecov-action@v3
with:
files: ./clover.xml
fail_ci_if_error: true
token: c9fc8445-628e-41c3-886a-a37ebd3c4807