mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-11 06:49:07 +00:00
* update php laravel samples
* add php-nextgen to the github workflow
* trigger build failure
* add syntax checker workflow
* Revert "trigger build failure"
This reverts commit 5be28f2e76.
37 lines
995 B
YAML
37 lines
995 B
YAML
name: Samples PHP Syntax Checker
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
|
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
|
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
|
|
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:
|
|
# clients
|
|
- samples/client/petstore/php/OpenAPIClient-php/
|
|
- samples/client/petstore/php-nextgen/OpenAPIClient-php/
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- 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 {} +
|