Skip to content

Commit e6d6fd1

Browse files
committed
[ci] add compat test
1 parent 6f82472 commit e6d6fd1

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.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

0 commit comments

Comments
 (0)