mirror of
https://codeberg.org/vlw/php-xenum.git
synced 2025-09-14 04:33:40 +02:00
wip: 2023-10-05T15:19:50+0200 (1696511990)
This commit is contained in:
parent
3a9e7eff73
commit
a455987cc7
3 changed files with 25 additions and 9 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -4,18 +4,16 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build-test:
|
build-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
php-versions: ["8.2"]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Install dependencies
|
||||||
uses: shivammathur/setup-php@v2
|
uses: php-actions/composer@v6
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-versions }}
|
|
||||||
|
|
||||||
- name: Run PHPUnit tests
|
- name: Run PHPUnit Tests
|
||||||
uses: php-actions/phpunit@v3
|
uses: php-actions/phpunit@v3
|
||||||
|
with:
|
||||||
|
bootstrap: vendor/autoload.php
|
||||||
|
configuration: test/phpunit.xml
|
18
test/phpunit.xml
Normal file
18
test/phpunit.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?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"/>
|
||||||
|
</report>
|
||||||
|
</coverage>
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="main">
|
||||||
|
<directory suffix="Test.php">.</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
<logging/>
|
||||||
|
</phpunit>
|
Loading…
Add table
Reference in a new issue