mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-11 06:39:06 +00:00
* test php clients in github workflow
* trigger build failure
* update workflow
* Revert "trigger build failure"
This reverts commit 572a69f6bc.
* update tests
* update tests
* update test
* fix tests
* fix async test
* update tests
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@v4
|
|
- 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
|