forked from loafle/openapi-generator-original
* test php symfony server sample in github action * update php laravel samples * add tests for php 7.x, 8.x
33 lines
795 B
YAML
33 lines
795 B
YAML
name: Samples PHP 7.x
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/server/petstore/php-laravel/lib/
|
|
pull_request:
|
|
paths:
|
|
- samples/server/petstore/php-laravel/lib/
|
|
jobs:
|
|
build:
|
|
name: Build PHP projects
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# servers
|
|
- samples/server/petstore/php-laravel/lib/
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup PHP with tools
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '7.4'
|
|
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
|