mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-01-16 19:47:08 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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@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 {} +
|