Skip to content

Commit 8b97f3f

Browse files
committed
[ci] add compat test
1 parent 735b446 commit 8b97f3f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/compat_test.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
10+
jobs:
11+
build_scoped_rector:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 3
14+
15+
steps:
16+
-
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
-
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: 8.2
25+
coverage: none
26+
27+
- run:
28+
composer create-project rector/rector-compat-tests:dev-main .
29+
vendor/bin/phpunit tests/PHPStan
30+
vendor/bin/phpunit tests/PHPUnit
31+
vendor/bin/phpunit tests

0 commit comments

Comments
 (0)