-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (34 loc) · 968 Bytes
/
php-unit.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
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: PHP Unit
jobs:
Unit:
runs-on: ubuntu-latest
env:
XDEBUG_MODE: coverage
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run unit tests
run: vendor/bin/phpunit --testsuite unit
#- name: Generate code coverage
# uses: codecov/codecov-action@v3
# with:
# files: phpunit.cobertura.xml
- name: Generate code coverage report
uses: irongut/[email protected]
with:
format: markdown
filename: phpunit.cobertura.xml
badge: true
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md