mirror of
https://codeberg.org/vlw/php-xenum.git
synced 2025-09-13 12:13:42 +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
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -4,18 +4,16 @@ on: [push, pull_request]
|
|||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ["8.2"]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
- name: Install dependencies
|
||||
uses: php-actions/composer@v6
|
||||
|
||||
- name: Run PHPUnit tests
|
||||
uses: php-actions/phpunit@v3
|
||||
- name: Run PHPUnit Tests
|
||||
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