Skip to content

Commit c784e49

Browse files
committed
Use Teamcity for GH
1 parent cc19ee8 commit c784e49

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

.github/workflows/run-tests.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ jobs:
3737
extensions: mbstring
3838
coverage: pcov
3939

40+
- name: Configure matchers
41+
uses: mheap/phpunit-matcher-action@v1
42+
4043
- name: Install dependencies
4144
run: |
4245
composer require "symfony/http-foundation:${{ matrix.symfony }}" --no-interaction --no-update
4346
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --with-all-dependencies
4447
4548
- name: Execute Unit Tests
46-
run: composer test
49+
run: vendor/bin/phpunit --teamcity
4750

4851
- name: Analyse with PHPStan
4952
run: composer analyse
@@ -54,5 +57,5 @@ jobs:
5457
if: matrix.os == 'ubuntu-latest'
5558

5659
- name: Check Code Coverage
57-
run: php vendor/bin/phpunit --verbose --coverage-text
60+
run: vendor/bin/phpunit --verbose --coverage-text
5861
if: matrix.dependency-version == 'prefer-stable' && matrix.php == '8.1'

phpunit.xml.dist

+6-17
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">./src/</directory>
6+
</include>
7+
</coverage>
128
<testsuites>
139
<testsuite name="Fruitcake Cors Test Suite">
1410
<directory>./tests</directory>
1511
</testsuite>
1612
</testsuites>
17-
18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">./src/</directory>
21-
</whitelist>
22-
</filter>
23-
2413
</phpunit>

0 commit comments

Comments
 (0)