-
Notifications
You must be signed in to change notification settings - Fork 106
76 lines (63 loc) · 2.05 KB
/
coveritup.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
on:
- push
name: "CoveritUp"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.3]
name: PHP ${{ matrix.php }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Install tools
run: |
curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-versions }}
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: pcov
extensions: intl, gd, zip, pdo, sqlite, pdo_sqlite, dom, curl, libxml, mbstring, fileinfo, exif, iconv
ini-values: memory_limit=-1,disable_functions="",pcov.exclude="~(vendor|tests|node_modules)~",pcov.directory="./"
php-version: ${{ matrix.php }}
tools: composer:v2
- name: NPM Install Time
uses: kevincobain2000/action-coveritup@v2
with:
type: npm-install-time
metric: sec
command: cd ui/; npm install
record: runtime
- name: Composer Install Time
uses: kevincobain2000/action-coveritup@v2
with:
type: composer-install-time
metric: sec
command: composer install
record: runtime
- name: PHPUNIT Tests
uses: kevincobain2000/action-coveritup@v2
with:
type: phpunit-run-time
metric: sec
command: ./vendor/bin/phpunit --coverage-clover=coverage.xml
record: runtime
- name: Code Coverage
uses: kevincobain2000/action-coveritup@v2
with:
type: phpunit-coverage
metric: '%'
command: ./cover-totalizer coverage.xml
- name: "Comment on PR"
uses: kevincobain2000/action-coveritup@v2
with:
pr_comment: true
diff_types: phpunit-coverage