From fc566860d502611c64c8e5daebc46a9da9a380fb Mon Sep 17 00:00:00 2001 From: Martin Kluska Date: Sun, 7 Apr 2024 14:43:17 +0200 Subject: [PATCH] Update --- .github/workflows/check-code.yml | 66 ++++++++++++++++++++++++++++---- composer.json | 8 ++-- 2 files changed, 62 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check-code.yml b/.github/workflows/check-code.yml index 0609cc4b..1dee4433 100644 --- a/.github/workflows/check-code.yml +++ b/.github/workflows/check-code.yml @@ -20,20 +20,72 @@ concurrency: cancel-in-progress: true jobs: - code: - name: "Code check" - uses: wrk-flow/reusable-workflows/.github/workflows/php-check.yml@7562253bdc3769847417e3476b501e7126f5d2c0 + code_l9: + name: "Code check - Laravel 9" + strategy: + matrix: + phpVersion: [ "8.1", "8.2", "8.3" ] + uses: wrk-flow/reusable-workflows/.github/workflows/php-check.yml@2bfd2e2fdf3fa3cf0cdf1b2c6d0379f91066084e + with: + composerRequireDev: "orchestra/testbench:^v7" + phpVersion: "${{ matrix.phpVersion }}" + secrets: inherit + + code_l10: + name: "Code check - Laravel 10" + strategy: + matrix: + phpVersion: [ "8.1", "8.2", "8.3" ] + uses: wrk-flow/reusable-workflows/.github/workflows/php-check.yml@2bfd2e2fdf3fa3cf0cdf1b2c6d0379f91066084e + with: + composerRequireDev: "orchestra/testbench:^v8" + phpVersion: "${{ matrix.phpVersion }}" + secrets: inherit + + code_l11: + name: "Code check - Laravel 11" + strategy: + matrix: + phpVersion: [ "8.2", "8.3" ] + uses: wrk-flow/reusable-workflows/.github/workflows/php-check.yml@2bfd2e2fdf3fa3cf0cdf1b2c6d0379f91066084e + with: + composerRequireDev: "orchestra/testbench:^v9" + phpVersion: "${{ matrix.phpVersion }}" secrets: inherit - tests: - name: "Run tests" + tests_l9: + name: "Code check - Laravel 9" strategy: matrix: phpVersion: [ "8.1", "8.2", "8.3" ] - uses: wrk-flow/reusable-workflows/.github/workflows/php-tests.yml@7562253bdc3769847417e3476b501e7126f5d2c0 + uses: wrk-flow/reusable-workflows/.github/workflows/php-tests.yml@2bfd2e2fdf3fa3cf0cdf1b2c6d0379f91066084e with: + composerRequireDev: "orchestra/testbench:^v7" + phpVersion: "${{ matrix.phpVersion }}" + secrets: inherit + + tests_l10: + name: "Code check - Laravel 10" + strategy: + matrix: + phpVersion: [ "8.1", "8.2", "8.3" ] + uses: wrk-flow/reusable-workflows/.github/workflows/php-tests.yml@2bfd2e2fdf3fa3cf0cdf1b2c6d0379f91066084e + with: + composerRequireDev: "orchestra/testbench:^v8" + phpVersion: "${{ matrix.phpVersion }}" + secrets: inherit + + tests_l11: + name: "Code check - Laravel 11" + strategy: + matrix: + phpVersion: [ "8.2", "8.3" ] + uses: wrk-flow/reusable-workflows/.github/workflows/php-tests.yml@2bfd2e2fdf3fa3cf0cdf1b2c6d0379f91066084e + with: + composerRequireDev: "orchestra/testbench:^v9" + phpVersion: "${{ matrix.phpVersion }}" gistID: ${{ vars.GIST_ID }} gistOnPhpVersion: "8.2" - phpVersion: "${{ matrix.phpVersion }}" secrets: inherit + diff --git a/composer.json b/composer.json index 09eb7d9c..7373ee98 100644 --- a/composer.json +++ b/composer.json @@ -24,13 +24,11 @@ "psr/simple-cache": "^3.0" }, "require-dev": { - "larastrict/conventions": "v0.1.0", + "larastrict/conventions": "v0.1.1", "mockery/mockery": "^1.6", "nette/php-generator": "^v4.1", - "orchestra/testbench": "^v7", - "phpstan/phpstan-mockery": "^1.1.0", - "phpstan/phpdoc-parser": "^1.13", - "nikic/php-parser": "^v4.19" + "orchestra/testbench": "^v7.41 | ^v8.0 | ^v9.0", + "phpstan/phpstan-mockery": "^1.1.0" }, "scripts": { "post-autoload-dump": [