-
-
Notifications
You must be signed in to change notification settings - Fork 27
32 lines (25 loc) · 652 Bytes
/
php_coverage.yml
File metadata and controls
32 lines (25 loc) · 652 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
name: Code coverage
on:
push:
branches:
pull_request:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
extensions: mbstring, intl, json
coverage: pcov
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run unit tests
run: ./vendor/bin/phpunit
- name: Upload coverage report
uses: qltysh/qlty-action/coverage@v2
with:
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: build/clover.xml