diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c363a00..23d2b2c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Tests Execution on: workflow_dispatch: pull_request: - types: [opened, reopened] + types: [opened, reopened, synchronize] paths-ignore: - '**.md' - 'docs/**' @@ -16,7 +16,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - php: [8.3, 8.2, 8.1, 8.0, 7.4] + php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.4] name: ${{ matrix.os }} - PHP${{ matrix.php }} @@ -32,8 +32,8 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, bcmath, intl coverage: xdebug - - name: Install composer - run: composer install --no-interaction --prefer-dist + - name: Update composer + run: composer update --prefer-stable --no-interaction --prefer-dist - name: Execute tests on Linux with cover if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == '8.3' }} diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml index 873a526..40a304f 100644 --- a/.github/workflows/test_macos.yml +++ b/.github/workflows/test_macos.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - php: [8.3, 8.2, 8.1, 8.0, 7.4] + php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.4] name: macos-latest - PHP${{ matrix.php }} @@ -26,8 +26,8 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, bcmath, intl coverage: none - - name: Install composer - run: composer install --no-interaction --prefer-dist + - name: Update composer + run: composer update --prefer-stable --no-interaction --prefer-dist - name: Execute tests on MacOs run: sudo vendor/bin/phpunit --exclude MacOsFailures --testdox diff --git a/.github/workflows/test_ubuntu.yml b/.github/workflows/test_ubuntu.yml index 244902f..850462a 100644 --- a/.github/workflows/test_ubuntu.yml +++ b/.github/workflows/test_ubuntu.yml @@ -26,8 +26,8 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, bcmath, intl coverage: none - - name: Install composer - run: composer install --no-interaction --prefer-dist + - name: Update composer + run: composer update --prefer-stable --no-interaction --prefer-dist - name: Execute tests on Linux run: sudo vendor/bin/phpunit --testdox diff --git a/.github/workflows/test_win.yml b/.github/workflows/test_win.yml index 8bd4700..db93179 100644 --- a/.github/workflows/test_win.yml +++ b/.github/workflows/test_win.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - php: [8.3, 8.2, 8.1, 8.0, 7.4] + php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.4] name: windows-latest - PHP${{ matrix.php }} @@ -26,7 +26,7 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, bcmath, intl coverage: none - - name: Install composer + - name: Update composer run: composer install --no-interaction --prefer-dist - name: Execute tests on Windows diff --git a/composer.json b/composer.json index f384b25..74bf01f 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "php": ">=7.4" }, "require-dev": { - "phpunit/phpunit": ">=9.6", + "phpunit/phpunit": "9.6.*", "phpstan/phpstan": ">=1.10", "vimeo/psalm": ">=5", "squizlabs/php_codesniffer": "*" diff --git a/src/DiffCodeMultiRunner.php b/src/DiffCodeMultiRunner.php index ee41b63..a4597e6 100644 --- a/src/DiffCodeMultiRunner.php +++ b/src/DiffCodeMultiRunner.php @@ -32,7 +32,7 @@ final class DiffCodeMultiRunner extends MultiRunner public function __construct( int $maxNumberParallelProcesses, ?string $baseFolder = null, - OsCommandsWrapper $osCommandsWrapper = null + ?OsCommandsWrapper $osCommandsWrapper = null ) { parent::__construct($maxNumberParallelProcesses, $osCommandsWrapper);