Skip to content
Snippets Groups Projects
Unverified Commit e049fa83 authored by Nils Behlen's avatar Nils Behlen Committed by GitHub
Browse files

Merge branch 'master' into 20-add-preferred-client-mode

parents 1bafbd5c 23fc2da1
No related tags found
No related merge requests found
name: PHP & Composer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
permissions:
write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate composer.json and composer.lock
run: composer validate
- name: Check PHP installation
run: php -m
- name: Check PHP packages
run: dpkg --get-selections | grep -i php
name: Run tests and cov report
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
permissions:
write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
with:
dev: yes
- name: Run PHPUnit Tests
uses: php-actions/phpunit@master
with:
php_version: 7.3
php_extensions: xdebug
bootstrap: vendor/autoload.php
configuration: test/utils/phpunit.xml
args: --coverage-text
env:
XDEBUG_MODE: coverage
- name: Update coverage badge
uses: timkrase/phpunit-coverage-badge@v1.2.0
with:
report: test/utils/_coverage/clover.xml
report_type: clover
......@@ -7,6 +7,7 @@
<report>
<html outputDirectory="./_coverage" lowUpperBound="35" highLowerBound="70"/>
<text outputFile="php://stdout" showUncoveredFiles="true"/>
<clover outputFile= "_coverage/clover.xml"/>
</report>
</coverage>
<testsuites>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment