Skip to content

Commit 51dade5

Browse files
committed
[Cleanup] Fix formatting in phpunit.xml and tests.yml
1 parent 9e6592d commit 51dade5

File tree

2 files changed

+42
-43
lines changed

2 files changed

+42
-43
lines changed

.github/workflows/tests.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,31 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: ['7.4', '8.0', '8.1']
18-
laravel: ['^8.0']
17+
php: [ '7.4', '8.0', '8.1' ]
18+
laravel: [ '^8.0' ]
1919

2020
steps:
21-
- name: Checkout Code
22-
uses: actions/checkout@v2
23-
24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
29-
tools: composer:v2
30-
coverage: none
31-
ini-values: error_reporting=E_ALL
32-
33-
- name: Set Laravel Version
34-
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-update -n
35-
36-
- name: Install dependencies
37-
uses: nick-invision/retry@v1
38-
with:
39-
timeout_minutes: 5
40-
max_attempts: 5
41-
command: composer install --no-suggest --prefer-dist -n -o
42-
43-
- name: Execute tests
44-
run: vendor/bin/phpunit
21+
- name: Checkout Code
22+
uses: actions/checkout@v2
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
29+
tools: composer:v2
30+
coverage: none
31+
ini-values: error_reporting=E_ALL
32+
33+
- name: Set Laravel Version
34+
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-update -n
35+
36+
- name: Install dependencies
37+
uses: nick-invision/retry@v1
38+
with:
39+
timeout_minutes: 5
40+
max_attempts: 5
41+
command: composer install --no-suggest --prefer-dist -n -o
42+
43+
- name: Execute tests
44+
run: vendor/bin/phpunit

phpunit.xml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,20 @@
1515
verbose="true"
1616
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1717
>
18-
<coverage>
19-
<include>
20-
<directory suffix=".php">src/</directory>
21-
</include>
22-
</coverage>
23-
<testsuites>
24-
<testsuite name="Unit">
25-
<directory suffix="Test.php">./tests/Unit/</directory>
26-
</testsuite>
27-
<testsuite name="Integration">
28-
<directory suffix="Test.php">./tests/Integration/</directory>
29-
</testsuite>
30-
</testsuites>
31-
32-
<php>
33-
<ini name="error_reporting" value="E_ALL"/>
34-
</php>
18+
<coverage>
19+
<include>
20+
<directory suffix=".php">src/</directory>
21+
</include>
22+
</coverage>
23+
<testsuites>
24+
<testsuite name="Unit">
25+
<directory suffix="Test.php">./tests/Unit/</directory>
26+
</testsuite>
27+
<testsuite name="Integration">
28+
<directory suffix="Test.php">./tests/Integration/</directory>
29+
</testsuite>
30+
</testsuites>
31+
<php>
32+
<ini name="error_reporting" value="E_ALL"/>
33+
</php>
3534
</phpunit>

0 commit comments

Comments
 (0)