diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 3c9dec53363..6889069be1c 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -64,6 +64,12 @@ jobs: name: 'Detect composer dependency issues' run: vendor/bin/composer-dependency-analyser + - + name: "PHP Linter" + run: | + composer require php-parallel-lint/php-parallel-lint --ansi + vendor/bin/parallel-lint src bin/rector config tests rules --colors + name: ${{ matrix.actions.name }} runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/compat_test.yaml b/.github/workflows/compat_test.yaml new file mode 100644 index 00000000000..712585a8d97 --- /dev/null +++ b/.github/workflows/compat_test.yaml @@ -0,0 +1,30 @@ +# builds the content of https://github.com/rectorphp/rector +# inspiration from https://github.com/phpstan/phpstan-src/blob/master/.github/workflows/phar.yml +name: PHPUnit and PHPStan Compat Test + +on: + push: + branches: + - main + pull_request: null + +jobs: + build_scoped_rector: + runs-on: ubuntu-latest + + steps: + - + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + coverage: none + + - run: composer create-project "rector/rector-compat-tests:dev-main" . + + - run: vendor/bin/phpunit tests/PHPStan + + - run: vendor/bin/phpunit tests/Rector + + - run: vendor/bin/phpunit tests + + - run: vendor/bin/phpunit diff --git a/.github/workflows/php_linter.yaml b/.github/workflows/php_linter.yaml deleted file mode 100644 index ea14316f094..00000000000 --- a/.github/workflows/php_linter.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: PHP Linter - -on: - pull_request: null - -env: - # see https://github.com/composer/composer/issues/9368#issuecomment-718112361 - COMPOSER_ROOT_VERSION: "dev-main" - -jobs: - php_linter: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - coverage: none - - - run: composer require php-parallel-lint/php-parallel-lint --ansi - - run: vendor/bin/parallel-lint src bin/rector config tests rules --colors