Skip to content

Commit

Permalink
enable-post-process-file in openapi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 2, 2024
1 parent 6c9fbf6 commit 05efed3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
run: |
sudo -- apt-get update
sudo -- apt-get install -y xmlstarlet
-
name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
tools: "php-cs-fixer"
coverage: "none"
-
name: "Determine OpenAPI CLI version"
id: "openapi_cli"
Expand Down Expand Up @@ -70,11 +77,14 @@ jobs:
cat .openapi-generator/FILES | xargs -- rm -f -r
-
name: "Generate client"
env:
PHP_POST_PROCESS_FILE: "php-cs-fixer fix --allow-risky yes"
run: |
java -jar "${{ runner.temp }}/openapi-generator-cli.jar" generate \
--input-spec "${{ runner.temp }}/spec.json" \
--generator-name php \
--output ./ \
--enable-post-process-file \
--additional-properties 'invokerPackage=Cone\Billingo,variableNamingConvention=camelCase,srcBasePath=src'
-
name: "Check difference to repository"
Expand Down

0 comments on commit 05efed3

Please sign in to comment.