Skip to content

Commit 8e47984

Browse files
authored
Merge pull request #7 from php-etl/fix-ci-and-tests
update ci, fix tests
2 parents ea9fda4 + c0266ec commit 8e47984

36 files changed

+122
-61
lines changed

.github/workflows/infection.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v2
88
- uses: shivammathur/setup-php@v2
99
with:
10-
php-version: '8.0'
10+
php-version: '8.1'
1111
tools: composer:v2
1212
coverage: pcov
1313
- uses: actions/cache@v2
@@ -19,12 +19,12 @@ jobs:
1919
- uses: php-actions/composer@v5
2020
with:
2121
args: --prefer-dist
22-
php_version: 8.0
22+
php_version: 8.1
2323

2424
- name: Infection
2525
run: |
26-
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar
27-
wget -q https://github.com/infection/infection/releases/download/0.20.0/infection.phar.asc
26+
wget -q https://github.com/infection/infection/releases/download/0.26.10/infection.phar
27+
wget -q https://github.com/infection/infection/releases/download/0.26.10/infection.phar.asc
2828
chmod +x infection.phar
2929
./infection.phar
3030

.github/workflows/phpstan-5.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: php-actions/composer@v5
1515
with:
1616
args: --prefer-dist
17-
php_version: 8.0
17+
php_version: 8.1
1818
- name: PHPStan
1919
uses: php-actions/phpstan@v2
2020
with:
2121
path: src/
22-
level: 5
23-
php_version: 8.0
22+
args: --level=5
23+
php_version: 8.1

.github/workflows/phpstan-7.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: php-actions/composer@v5
1515
with:
1616
args: --prefer-dist
17-
php_version: 8.0
17+
php_version: 8.1
1818
- name: PHPStan
1919
uses: php-actions/phpstan@v2
2020
with:
2121
path: src/
22-
level: 7
23-
php_version: 8.0
22+
args: --level=7
23+
php_version: 8.1

.github/workflows/phpstan-8.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: php-actions/composer@v5
1515
with:
1616
args: --prefer-dist
17-
php_version: 8.0
17+
php_version: 8.1
1818
- name: PHPStan
1919
uses: php-actions/phpstan@v2
2020
with:
2121
path: src/
22-
level: 8
23-
php_version: 8.0
22+
args: --level=8
23+
php_version: 8.1

.github/workflows/quality.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Quality (PHPStan level 4)
1+
name: Quality
22
on: push
33
jobs:
44
cs-fixer:
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v2
88
- name: Cs-Fixer
99
run: |
10-
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
10+
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
1111
chmod a+x php-cs-fixer
1212
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
1313
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: '8.0'
20+
php-version: '8.1'
2121
tools: composer:v2
2222
coverage: pcov
2323
- uses: actions/cache@v2
@@ -29,7 +29,7 @@ jobs:
2929
- uses: php-actions/composer@v5
3030
with:
3131
args: --prefer-dist
32-
php_version: 8.0
32+
php_version: 8.1
3333
- name: Run tests & generate Coverage
3434
run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src
3535
- name: Store coverage files
@@ -50,10 +50,11 @@ jobs:
5050
- uses: php-actions/composer@v5
5151
with:
5252
args: --prefer-dist
53-
php_version: 8.0
53+
php_version: 8.1
54+
5455
- name: PHPStan
5556
uses: php-actions/phpstan@v2
5657
with:
5758
path: src/
58-
level: 4
59-
php_version: 8.0
59+
args: --level=4
60+
php_version: 8.1

src/Assert/BuilderAssertTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\PHPUnitExtension\Assert;
46

src/Assert/ExtractorAssertTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\PHPUnitExtension\Assert;
46

src/Assert/ExtractorBuilderAssertTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\PHPUnitExtension\Assert;
46

src/Assert/LoaderAssertTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\PHPUnitExtension\Assert;
46

src/Assert/LoaderBuilderAssertTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Kiboko\Component\PHPUnitExtension\Assert;
46

0 commit comments

Comments
 (0)