Skip to content

Commit 8e317cb

Browse files
authored
[ci] Run PHPUnit 12 and PHPStan compatibilty check (#7455)
* [ci] merge linter to code analysis, as same topic * [ci] add compat test
1 parent 1d7a05f commit 8e317cb

File tree

3 files changed

+36
-24
lines changed

3 files changed

+36
-24
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ jobs:
6464
name: 'Detect composer dependency issues'
6565
run: vendor/bin/composer-dependency-analyser
6666

67+
-
68+
name: "PHP Linter"
69+
run: |
70+
composer require php-parallel-lint/php-parallel-lint --ansi
71+
vendor/bin/parallel-lint src bin/rector config tests rules --colors
72+
6773
name: ${{ matrix.actions.name }}
6874
runs-on: ubuntu-latest
6975
timeout-minutes: 10

.github/workflows/compat_test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# builds the content of https://github.com/rectorphp/rector
2+
# inspiration from https://github.com/phpstan/phpstan-src/blob/master/.github/workflows/phar.yml
3+
name: PHPUnit and PHPStan Compat Test
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request: null
10+
11+
jobs:
12+
build_scoped_rector:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
-
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 8.2
20+
coverage: none
21+
22+
- run: composer create-project "rector/rector-compat-tests:dev-main" .
23+
24+
- run: vendor/bin/phpunit tests/PHPStan
25+
26+
- run: vendor/bin/phpunit tests/Rector
27+
28+
- run: vendor/bin/phpunit tests
29+
30+
- run: vendor/bin/phpunit

.github/workflows/php_linter.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)