From 44891e03192a209d9d1a033dd40e9b4560296972 Mon Sep 17 00:00:00 2001 From: tbali0524 Date: Mon, 24 Jun 2024 11:39:53 +0200 Subject: [PATCH] bump tooling version --- .github/workflows/qa.yml | 4 ++-- .php-cs-fixer.dist.php | 3 ++- composer.json | 2 ++ composer.lock | 3 ++- phpcs.xml | 2 +- phpdoc.dist.xml | 2 +- phpunit.xml | 4 ++-- src/Aoc/AocRunner.php | 4 ++-- tests/Aoc2015Test.php | 2 +- tests/Aoc2016Test.php | 2 +- tests/Aoc2017Test.php | 2 +- tests/Aoc2018Test.php | 4 ++-- tests/Aoc2019Test.php | 2 +- tests/Aoc2020Test.php | 2 +- tests/Aoc2021Test.php | 2 +- tests/Aoc2022Test.php | 2 +- tests/Aoc2023Test.php | 2 +- 17 files changed, 24 insertions(+), 20 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index d857b1b..3d9adb2 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -13,7 +13,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: "8.3" - tools: phpcs:3.9, php-cs-fixer:3.56, phpstan:1.11 + tools: phpcs:3.10, php-cs-fixer:3.59, phpstan:1.11 coverage: none env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -45,7 +45,7 @@ jobs: with: php-version: "8.3" extensions: mbstring, bcmath, xdebug - tools: phpunit:11.1 + tools: phpunit:11.2 coverage: xdebug env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index f106fe0..d090da4 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -3,7 +3,7 @@ /** * php-cs-fixer configuration file. * - * minimum version: ^3.56 + * minimum version: ^3.59 * * @see https://cs.symfony.com/doc/config.html */ @@ -55,5 +55,6 @@ ->setCacheFile(__DIR__ . '/.tools/.php-cs-fixer.cache') ->setIndent(" ") ->setLineEnding("\n") + ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) ->setFinder($finder) ; diff --git a/composer.json b/composer.json index 2a43240..b80232c 100644 --- a/composer.json +++ b/composer.json @@ -47,6 +47,8 @@ "metrics": "phpmetrics --config=.phpmetrics.json", "stan": "phpstan --ansi --verbose", "qa": [ + "parallel-lint --version", + "@lint", "phpcs --version", "@cs", "@cs-fixer", diff --git a/composer.lock b/composer.lock index 20df95d..4844ad5 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bd49f28b2809e5b94613d031234cc146", + "content-hash": "e1c9d23b9c7ec0d94f5b2cf14495a27b", "packages": [], "packages-dev": [], "aliases": [], @@ -14,6 +14,7 @@ "prefer-lowest": false, "platform": { "php": "^8.3", + "ext-bcmath": "*", "ext-ctype": "*" }, "platform-dev": [], diff --git a/phpcs.xml b/phpcs.xml index 603a46a..c486606 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -2,7 +2,7 @@ diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index b57a46f..663881a 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -2,7 +2,7 @@ diff --git a/phpunit.xml b/phpunit.xml index 80d2468..3cd40ad 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -2,13 +2,13 @@ getClassName($year, $day); - $fullClassName = 'TBali\\Aoc' . $year . '\\' . $className; + $fullClassName = 'TBali\Aoc' . $year . '\\' . $className; /** @var Solution */ $solution = new $fullClassName(); $success = $solution->run(); diff --git a/tests/Aoc2015Test.php b/tests/Aoc2015Test.php index ddf6529..18ecebf 100644 --- a/tests/Aoc2015Test.php +++ b/tests/Aoc2015Test.php @@ -56,7 +56,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2015Day01::class)] #[CoversClass(Aoc2015Day02::class)] #[CoversClass(Aoc2015Day03::class)] diff --git a/tests/Aoc2016Test.php b/tests/Aoc2016Test.php index e666d5a..a1ac499 100644 --- a/tests/Aoc2016Test.php +++ b/tests/Aoc2016Test.php @@ -50,7 +50,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2016Day01::class)] #[CoversClass(Aoc2016Day02::class)] #[CoversClass(Aoc2016Day03::class)] diff --git a/tests/Aoc2017Test.php b/tests/Aoc2017Test.php index 3c64718..2802e3b 100644 --- a/tests/Aoc2017Test.php +++ b/tests/Aoc2017Test.php @@ -50,7 +50,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2017Day01::class)] #[CoversClass(Aoc2017Day02::class)] #[CoversClass(Aoc2017Day03::class)] diff --git a/tests/Aoc2018Test.php b/tests/Aoc2018Test.php index b49a8b7..4e68660 100644 --- a/tests/Aoc2018Test.php +++ b/tests/Aoc2018Test.php @@ -56,7 +56,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2018Day01::class)] #[CoversClass(Aoc2018Day02::class)] #[CoversClass(Aoc2018Day03::class)] @@ -520,7 +520,7 @@ public function testDay13(): void public function testDay13InvalidInput1(): void { $solver = new Aoc2018Day13(); - $input = ['/-\\', '\\-/']; + $input = ['/-\\', '\-/']; $this->expectException(\Exception::class); [$ans1, $ans2] = $solver->solve($input); } diff --git a/tests/Aoc2019Test.php b/tests/Aoc2019Test.php index 67d944b..ef22bce 100644 --- a/tests/Aoc2019Test.php +++ b/tests/Aoc2019Test.php @@ -61,7 +61,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2019Day01::class)] #[CoversClass(Aoc2019Day02::class)] #[CoversClass(Aoc2019Day03::class)] diff --git a/tests/Aoc2020Test.php b/tests/Aoc2020Test.php index 93322ba..ee3ea83 100644 --- a/tests/Aoc2020Test.php +++ b/tests/Aoc2020Test.php @@ -56,7 +56,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2020Day01::class)] #[CoversClass(Aoc2020Day02::class)] #[CoversClass(Aoc2020Day03::class)] diff --git a/tests/Aoc2021Test.php b/tests/Aoc2021Test.php index b6dae55..a7377c3 100644 --- a/tests/Aoc2021Test.php +++ b/tests/Aoc2021Test.php @@ -55,7 +55,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2021Day01::class)] #[CoversClass(Aoc2021Day02::class)] #[CoversClass(Aoc2021Day03::class)] diff --git a/tests/Aoc2022Test.php b/tests/Aoc2022Test.php index b07c7d2..ee1a09f 100644 --- a/tests/Aoc2022Test.php +++ b/tests/Aoc2022Test.php @@ -66,7 +66,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2022Day01::class)] #[CoversClass(Aoc2022Day02::class)] #[CoversClass(Aoc2022Day03::class)] diff --git a/tests/Aoc2023Test.php b/tests/Aoc2023Test.php index 1d3d3e9..85b778a 100644 --- a/tests/Aoc2023Test.php +++ b/tests/Aoc2023Test.php @@ -64,7 +64,7 @@ * @coversNothing */ #[RequiresPhp('^8.3')] -#[RequiresPhpunit('^11.0')] +#[RequiresPhpunit('^11.2')] #[CoversClass(Aoc2023Day01::class)] #[CoversClass(Aoc2023Day02::class)] #[CoversClass(Aoc2023Day03::class)]