diff --git a/.github/workflows/samples-php-nextgen-phpstan.yaml b/.github/workflows/samples-php-nextgen-phpstan.yaml new file mode 100644 index 000000000000..c9c76d04b91e --- /dev/null +++ b/.github/workflows/samples-php-nextgen-phpstan.yaml @@ -0,0 +1,35 @@ +name: Samples php-nextgen (phpstan) + +on: + push: + paths: + - samples/client/petstore/php-nextgen/OpenAPIClient-php/** + pull_request: + paths: + - samples/client/petstore/php-nextgen/OpenAPIClient-php/** +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: + - "8.1" + - "8.2" + - "8.3" + - "8.4" + sample: + # clients + - samples/client/petstore/php-nextgen/OpenAPIClient-php/ + steps: + - uses: actions/checkout@v7 + - name: Setup PHP with tools + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php }}" + - name: phpstan + working-directory: ${{ matrix.sample }} + run: | + composer require --dev phpstan/phpstan + vendor/bin/phpstan analyse src diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator-ignore b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator-ignore index 82e4e79984b4..5a9f4cf07bc2 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator-ignore +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator-ignore @@ -23,3 +23,5 @@ #!docs/README.md # # +# +#