Skip to content

Commit b232c27

Browse files
committed
update ci
1 parent fa7fa35 commit b232c27

6 files changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ jobs:
7676

7777
- name: Run tests
7878
continue-on-error: true
79-
run: vendor/bin/simple-phpunit tests
79+
run: vendor/bin/simple-phpunit

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
composer.lock
33
vendor/
44
docker-compose.override.yml
5+
/composer
6+
/.idea
7+
/*.iml

add_composer.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
export COMPOSER_HOME=/tmp/composer
4+
5+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
6+
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
7+
php composer-setup.php
8+
php -r "unlink('composer-setup.php');"
9+
chmod +x composer.phar
10+
mv composer.phar composer

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
<testsuites>
1111
<testsuite name="Test Suite">
12-
<directory>tests/Annotations</directory>
12+
<directory>tests</directory>
1313
</testsuite>
1414
</testsuites>
1515

src/OpenApiRouteLoader.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,7 @@ private function createOpenApi(): OpenApi
9898
return (new Generator())->setProcessors($processors)->generate($this->finder);
9999
}
100100

101-
$analyser = new ReflectionAnalyser([
102-
new AttributeAnnotationFactory(),
103-
new DocBlockAnnotationFactory()]
104-
);
105-
106-
return (new Generator())
107-
->setAnalyser($analyser)
108-
->generate($this->finder);
101+
return (new Generator())->generate($this->finder);
109102
}
110103

111104
/**

tests/Attributes/OpenApiRouteLoaderAttributesTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Tobion\OpenApiSymfonyRouting\Tests\Attributes\Fixtures\SeveralHttpMethods\Controller as SeveralHttpMethodsController;
2121
use Tobion\OpenApiSymfonyRouting\Tests\Attributes\Fixtures\SeveralRoutesOnOneAction\Controller as SeveralRoutesOnOneActionController;
2222

23+
/**
24+
* @requires PHP >= 8.1
25+
*/
2326
class OpenApiRouteLoaderAttributesTest extends TestCase
2427
{
2528
public function testBasic(): void

0 commit comments

Comments
 (0)