mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-01-17 09:27: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>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Samples PHP clients
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
|
pull_request:
|
|
paths:
|
|
- samples/client/petstore/php/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/
|
|
services:
|
|
petstore-api:
|
|
image: swaggerapi/petstore
|
|
ports:
|
|
- 80:8080
|
|
env:
|
|
SWAGGER_HOST: http://petstore.swagger.io
|
|
SWAGGER_BASE_PATH: /v2
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup PHP with tools
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: "${{ matrix.php }}"
|
|
tools: php-cs-fixer, phpunit
|
|
- name: composer install
|
|
working-directory: ${{ matrix.sample }}
|
|
run: composer install
|
|
- name: phpunit
|
|
working-directory: ${{ matrix.sample }}
|
|
run: vendor/bin/phpunit tests
|