Skip to content
Snippets Groups Projects
Unverified Commit 23fc2da1 authored by lukasmatusiewicz's avatar lukasmatusiewicz Committed by GitHub
Browse files

Update actions (#22)

* Create RunTests

* Update and rename RunTests to RunTests.yml

* Create phpunit.xml

* Update RunTests.yml

* Update and rename composer.yml to Composer.yml

* Update RunTests.yml

* Rename Composer.yml to checkComposer.yml

* Update and rename RunTests.yml to runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update phpunit.xml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update phpunit.xml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update phpunit.xml

* Update phpunit.xml

* Update phpunit.xml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update phpunit.xml

* Update runTests.yml

* Update runTests.yml

* Update phpunit.xml

* Update phpunit.xml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml

* Update runTests.yml
parent 2253f912
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,3 @@ jobs:
- name: Check PHP packages
run: dpkg --get-selections | grep -i php
- name: Install dependencies
uses: php-actions/composer@v6
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
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">../../src</directory>
</include>
<report>
<html outputDirectory="./_coverage" lowUpperBound="35" highLowerBound="70"/>
<text outputFile="php://stdout" showUncoveredFiles="true"/>
<clover outputFile= "_coverage/clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="main">
<directory suffix="Test.php">../</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment