diff --git a/.github/workflows/samples-php-server-syntax-check.yaml b/.github/workflows/samples-php-server-syntax-check.yaml new file mode 100644 index 000000000000..8402c49658a4 --- /dev/null +++ b/.github/workflows/samples-php-server-syntax-check.yaml @@ -0,0 +1,48 @@ +name: Samples PHP (Server) Syntax Checker + +on: + push: + paths: + - samples/server/petstore/php-symfony/SymfonyBundle-php/** + #- samples/server/petstore/php-laravel/** + - samples/server/petstore/php-flight/** + - samples/server/petstore/php-mezzio-ph-modern/** + - samples/server/petstore/php-mezzio-ph/** + - samples/server/petstore/php-slim4/** + pull_request: + paths: + - samples/server/petstore/php-symfony/SymfonyBundle-php/** + #- samples/server/petstore/php-laravel/** + - samples/server/petstore/php-flight/** + - samples/server/petstore/php-mezzio-ph-modern/** + - samples/server/petstore/php-mezzio-ph/** + - samples/server/petstore/php-slim4/** +jobs: + build: + name: Build PHP projects + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: + - "8.1" + - "8.2" + - "8.3" + - "8.4" + sample: + # servers + - samples/server/petstore/php-symfony/SymfonyBundle-php/ + #- samples/server/petstore/php-laravel/ + - samples/server/petstore/php-flight/ + - samples/server/petstore/php-mezzio-ph-modern/ + - samples/server/petstore/php-mezzio-ph/ + - samples/server/petstore/php-slim4/ + steps: + - uses: actions/checkout@v5 + - name: Setup PHP with tools + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php }}" + - name: php -l + working-directory: ${{ matrix.sample }} + run: find . -name "*.php" -exec php -l {} + diff --git a/samples/server/petstore/php-symfony/.openapi-generator-ignore b/samples/server/petstore/php-symfony/.openapi-generator-ignore index daed634bb4b7..82e4e79984b4 100644 --- a/samples/server/petstore/php-symfony/.openapi-generator-ignore +++ b/samples/server/petstore/php-symfony/.openapi-generator-ignore @@ -22,3 +22,4 @@ # Then explicitly reverse the ignore rule for a single file: #!docs/README.md # +# diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/.openapi-generator-ignore b/samples/server/petstore/php-symfony/SymfonyBundle-php/.openapi-generator-ignore index 7484ee590a38..82e4e79984b4 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/.openapi-generator-ignore +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/.openapi-generator-ignore @@ -21,3 +21,5 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md +# +#