Skip to content

Commit ccec86f

Browse files
committed
Run level tests separately
1 parent c4c64fe commit ccec86f

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed

.github/workflows/tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,31 @@ jobs:
121121
- name: "Tests"
122122
run: "make tests-integration"
123123

124+
tests-levels:
125+
name: "Levels tests"
126+
runs-on: ubuntu-latest
127+
needs: tests
128+
timeout-minutes: 60
129+
130+
steps:
131+
- name: "Checkout"
132+
uses: actions/checkout@v3
133+
134+
- name: "Install PHP"
135+
uses: "shivammathur/setup-php@v2"
136+
with:
137+
coverage: "none"
138+
php-version: "8.1"
139+
tools: pecl
140+
extensions: ds,mbstring
141+
ini-values: memory_limit=1G
142+
143+
- name: "Install dependencies"
144+
run: "composer install --no-interaction --no-progress"
145+
146+
- name: "Tests"
147+
run: "make tests-levels"
148+
124149
tests-old-phpunit:
125150
name: "Tests with old PHPUnit"
126151
runs-on: ${{ matrix.operating-system }}

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ tests:
88
tests-integration:
99
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group exec
1010

11+
tests-levels:
12+
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group levels
13+
1114
tests-static-reflection:
1215
php vendor/bin/paratest --runner WrapperRunner --no-coverage --bootstrap tests/bootstrap-static-reflection.php
1316

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<groups>
3131
<exclude>
3232
<group>exec</group>
33+
<group>levels</group>
3334
</exclude>
3435
</groups>
3536
<logging/>

tests/PHPStan/Generics/GenericsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use PHPStan\Testing\LevelsTestCase;
66

77
/**
8-
* @group exec
8+
* @group levels
99
*/
1010
class GenericsIntegrationTest extends LevelsTestCase
1111
{

tests/PHPStan/Levels/LevelsIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use PHPStan\Testing\LevelsTestCase;
66

77
/**
8-
* @group exec
8+
* @group levels
99
*/
1010
class LevelsIntegrationTest extends LevelsTestCase
1111
{

0 commit comments

Comments
 (0)