Skip to content

Commit abf553a

Browse files
committed
add php server syntax check worfklow
1 parent ffaeca3 commit abf553a

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Samples PHP (Server) Syntax Checker
2+
3+
on:
4+
push:
5+
paths:
6+
- https://github.com/OpenAPITools/openapi-generator/tree/master/samples/server/petstore/php-symfony/SymfonyBundle-php/**
7+
pull_request:
8+
paths:
9+
- https://github.com/OpenAPITools/openapi-generator/tree/master/samples/server/petstore/php-symfony/SymfonyBundle-php/**
10+
jobs:
11+
build:
12+
name: Build PHP projects
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php:
18+
- "8.1"
19+
- "8.2"
20+
- "8.3"
21+
- "8.4"
22+
sample:
23+
# servers
24+
- https://github.com/OpenAPITools/openapi-generator/tree/master/samples/server/petstore/php-symfony/SymfonyBundle-php/**
25+
steps:
26+
- uses: actions/checkout@v5
27+
- name: Setup PHP with tools
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: "${{ matrix.php }}"
31+
- name: php -l
32+
working-directory: ${{ matrix.sample }}
33+
run: find . -name "*.php" -exec php -l {} +

samples/server/petstore/php-symfony/.openapi-generator-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
2424
#
25+
#

0 commit comments

Comments
 (0)