-
-
Notifications
You must be signed in to change notification settings - Fork 368
37 lines (29 loc) · 784 Bytes
/
code-cov.yml
File metadata and controls
37 lines (29 loc) · 784 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
33
34
35
36
37
name: "Code Coverage"
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
jobs:
tests:
name: "Code Coverage"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
extensions: "intl, zip"
ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On"
php-version: "7.4"
tools: composer
coverage: xdebug2
- name: "Update dependencies"
run: "composer update ${{ env.COMPOSER_FLAGS }}"
- name: "Run coverage"
run: "composer coverage"