Skip to content

Commit 69a346e

Browse files
authored
Add test for require global install for PHPUnit 12 (#3)
* Add test for require global install for PHPUnit 12 * remove local first * add separate workflow * add separate workflow * add use rector stable
1 parent e923f14 commit 69a346e

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Compat Tests for global install
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
compat_tests:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
actions:
15+
-
16+
name: 'Rector dev + PHPUnit 12 global install'
17+
run: |
18+
composer remove --dev phpunit/phpunit -W
19+
composer global require --dev "phpunit/phpunit:12.*" -W
20+
composer require --dev "rector/rector:dev-main" -W
21+
php: 8.3
22+
23+
-
24+
name: 'Rector stable + PHPUnit 12 global install'
25+
run: |
26+
composer remove --dev phpunit/phpunit -W
27+
composer global require --dev "phpunit/phpunit:12.*" -W
28+
composer require --dev "rector/rector:^2.2" -W
29+
php: 8.3
30+
31+
name: ${{ matrix.actions.name }}
32+
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
-
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: ${{ matrix.actions.php }}
42+
coverage: none
43+
44+
- uses: "ramsey/composer-install@v2"
45+
- run: ${{ matrix.actions.run }}
46+
47+
- run: phpunit tests/PHPStan
48+
49+
- run: phpunit tests/Rector
50+
51+
- run: phpunit

0 commit comments

Comments
 (0)