Skip to content

Commit 010b40b

Browse files
committed
2 parents 7342ddc + 87231c3 commit 010b40b

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Samples PHP Syntax Checker
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/php/OpenAPIClient-php/**
7+
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
8+
pull_request:
9+
paths:
10+
- samples/client/petstore/php/OpenAPIClient-php/**
11+
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
12+
jobs:
13+
build:
14+
name: Build PHP projects
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php:
20+
- "8.1"
21+
- "8.2"
22+
- "8.3"
23+
- "8.4"
24+
sample:
25+
# clients
26+
- samples/client/petstore/php/OpenAPIClient-php/
27+
- samples/client/petstore/php-nextgen/OpenAPIClient-php/
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Setup PHP with tools
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: "${{ matrix.php }}"
34+
- name: php -l
35+
working-directory: ${{ matrix.sample }}
36+
run: find . -name "*.php" -exec php -l {} +

modules/openapi-generator-cli/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ADD target/openapi-generator-cli.jar /opt/openapi-generator/modules/openapi-gene
44

55
COPY docker-entrypoint.sh /usr/local/bin/
66

7+
RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-generator-cli
8+
79
ENTRYPOINT ["docker-entrypoint.sh"]
810

911
CMD ["help"]

samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#
25+
#

0 commit comments

Comments
 (0)