Skip to content

Commit

Permalink
chore(ci): remove old php versions in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ynnoig committed May 31, 2024
1 parent 96d43f5 commit 986c147
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 22 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI / Static

on:
push:
Expand All @@ -17,9 +17,6 @@ jobs:
fail-fast: false
matrix:
php-version: [
'7.4',
'8.0',
'8.1',
'8.2',
'8.3',
]
Expand All @@ -31,7 +28,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
coverage: pcov
extensions: dom, libxml, simplexml
tools: composer:v2

Expand All @@ -58,13 +55,16 @@ jobs:
run: vendor/bin/parallel-lint src/

- name: Run CodeStyle checks
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer check --allow-risky=yes --diff
run: composer run cs-check

- name: Run PHPStan
run: vendor/bin/phpstan analyze -clear-result-cache -c phpstan.neon src/ --no-progress
run: composer run phpstan

- name: Run Rector
run: composer run rector-check

- name: Run Tests
run: vendor/bin/phpunit --testdox tests
run: composer run test

- name: Run Security check
run: vendor/bin/security-checker security:check composer.lock
run: composer run security-check
8 changes: 3 additions & 5 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@

use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
use PhpCsFixer\Runner\Parallel\ParallelConfig;

$finder = Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;

$config = new Config();
Expand All @@ -26,7 +24,7 @@
'@Symfony' => true,
'@Symfony:risky' => false,
'native_function_invocation' => [
'include' => [NativeFunctionInvocationFixer::SET_INTERNAL],
'include' => ['@internal'],
'scope' => 'namespaced',
'strict' => false,
],
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
"cs-check": "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer check --diff",
"cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --diff",
"phpstan": "vendor/bin/phpstan analyze",
"rector": "vendor/bin/rector process"
"rector-check": "vendor/bin/rector process --dry-run",
"rector": "vendor/bin/rector process",
"security-check": "vendor/bin/security-checker security:check composer.lock"
},
"config": {
"allow-plugins": {
Expand Down
10 changes: 5 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage>
<report>
<html outputDirectory="./.tmp/report" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
<!-- <coverage>-->
<!-- <report>-->
<!-- <html outputDirectory="./.tmp/report" lowUpperBound="35" highLowerBound="70"/>-->
<!-- </report>-->
<!-- </coverage>-->
<testsuites>
<testsuite name="cXML Test Suite">
<directory>tests/</directory>
Expand Down
3 changes: 1 addition & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@
SetList::INSTANCEOF,
SetList::STRICT_BOOLEANS,
])
->withPhpSets()
;
->withPhpSets();

0 comments on commit 986c147

Please sign in to comment.