From 05efed3c9ef5de9f6ddb41cb3f1e178f5b4ffa1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 2 Jan 2024 22:11:37 +0100 Subject: [PATCH] enable-post-process-file in openapi.yml --- .github/workflows/openapi.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index f813f4c..9015ad7 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -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" @@ -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"