Skip to content

Commit 33f5379

Browse files
committed
Fix this issue
1 parent ee0f2d2 commit 33f5379

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,8 @@ jobs:
9292
- name: PHPUnit tests
9393
run: make test
9494

95+
- name: PHPUnit gigantic tests
96+
run: "composer require --dev apis-guru/openapi-directory nexmo/api-specification; make unit_gigantic"
97+
9598
- name: Code coverage
9699
run: make coverage

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ install: composer.json package.json
4747
test: unit test-recursion.json test-recursion2.yaml test-recursion3_index.yaml test-empty-maps.json
4848

4949
unit:
50-
$(DOCKER_PHP) php $(PHPARGS) $(XPHPARGS) vendor/bin/phpunit --verbose --colors=always $(TESTCASE)
50+
$(DOCKER_PHP) php $(PHPARGS) $(XPHPARGS) vendor/bin/phpunit --exclude-group gigantic --verbose --colors=always $(TESTCASE)
51+
52+
unit_gigantic: # run test which requires big packages: apis-guru/openapi-directory, nexmo/api-specification
53+
$(DOCKER_PHP) php $(PHPARGS) $(XPHPARGS) vendor/bin/phpunit --group gigantic --verbose --colors=always
5154

5255
# test specific JSON files in tests/spec/data/
5356
# e.g. test-recursion will run validation on tests/spec/data/recursion.json

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,4 +332,3 @@ Professional support, consulting as well as software development services are av
332332
https://www.cebe.cc/en/contact
333333

334334
Development of this library is sponsored by [cebe.:cloud: "Your Professional Deployment Platform"](https://cebe.cloud).
335-

composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
"phpunit/phpunit": "^6.5 || ^7.5 || ^8.5 || ^9.4",
2929
"oai/openapi-specification": "3.0.3",
3030
"mermade/openapi3-examples": "1.0.0",
31-
"apis-guru/openapi-directory": "1.0.0",
32-
"nexmo/api-specification": "1.0.0",
3331
"phpstan/phpstan": "^0.12.0 || ^1.9"
3432
},
3533
"conflict": {

tests/spec/OpenApiTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ public function specProvider()
184184
}
185185

186186
/**
187+
* This test requires 2 big packages (>778 MB): apis-guru/openapi-directory, nexmo/api-specification. So it is separated from running with other PHPUnit tests
187188
* @dataProvider specProvider
189+
* @group gigantic
188190
*/
189191
public function testSpecs($openApiFile)
190192
{

0 commit comments

Comments
 (0)