From b979eccf680a5b7f64c284221a5d2c868a4400ad Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 17 Feb 2022 15:49:34 +0800 Subject: [PATCH] Add Github action file to test Java clients (#11633) * add github action file to test java clients * update tests --- .../codegen/languages/JavaClientCodegen.java | 1 + .../main/resources/Java/maven.yml.mustache | 31 +++++++++++++++++++ .../codegen/DefaultGeneratorTest.java | 2 +- .../codegen/java/JavaClientCodegenTest.java | 12 +++---- .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../java/feign/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/feign/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../java/jersey1/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/jersey1/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../jersey2-java8/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../jersey2-java8/.openapi-generator/FILES | 1 + .../native-async/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../native-async/.openapi-generator/FILES | 1 + .../java/native/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/native/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../okhttp-gson/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/okhttp-gson/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../rest-assured/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../rest-assured/.openapi-generator/FILES | 1 + .../java/resteasy/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/resteasy/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../resttemplate/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../resttemplate/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../retrofit2-play26/.openapi-generator/FILES | 1 + .../retrofit2/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/retrofit2/.openapi-generator/FILES | 1 + .../retrofit2rx2/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../retrofit2rx2/.openapi-generator/FILES | 1 + .../retrofit2rx3/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../retrofit2rx3/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../java/vertx/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/vertx/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../webclient/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../java/webclient/.openapi-generator/FILES | 1 + .../jersey2-java8/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../jersey2-java8/.openapi-generator/FILES | 1 + .../.github/workflows/maven.yml | 30 ++++++++++++++++++ .../.openapi-generator/FILES | 1 + .../jersey2-java8/.github/workflows/maven.yml | 30 ++++++++++++++++++ .../jersey2-java8/.openapi-generator/FILES | 1 + 62 files changed, 938 insertions(+), 7 deletions(-) create mode 100644 modules/openapi-generator/src/main/resources/Java/maven.yml.mustache create mode 100644 samples/client/others/java/okhttp-gson-streaming/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/apache-httpclient/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/feign-no-nullable/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/feign/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/google-api-client/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/jersey1/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/jersey2-java8-localdatetime/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/jersey2-java8/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/native-async/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/native/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/okhttp-gson-dynamicOperations/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/okhttp-gson-parcelableModel/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/okhttp-gson/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/rest-assured-jackson/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/rest-assured/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/resteasy/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/resttemplate-withXml/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/resttemplate/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/retrofit2-play26/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/retrofit2/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/retrofit2rx2/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/retrofit2rx3/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/vertx-no-nullable/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/vertx/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/webclient-nulable-arrays/.github/workflows/maven.yml create mode 100644 samples/client/petstore/java/webclient/.github/workflows/maven.yml create mode 100644 samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.github/workflows/maven.yml create mode 100644 samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.github/workflows/maven.yml create mode 100644 samples/openapi3/client/petstore/java/jersey2-java8/.github/workflows/maven.yml diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java index 9309415635a..264f8b41bbf 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java @@ -350,6 +350,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen supportingFiles.add(new SupportingFile("ApiClient.mustache", invokerFolder, "ApiClient.java")); supportingFiles.add(new SupportingFile("ServerConfiguration.mustache", invokerFolder, "ServerConfiguration.java")); supportingFiles.add(new SupportingFile("ServerVariable.mustache", invokerFolder, "ServerVariable.java")); + supportingFiles.add(new SupportingFile("maven.yml.mustache", ".github/workflows", "maven.yml")); if (dynamicOperations) { supportingFiles.add(new SupportingFile("openapi.mustache", projectFolder + "/resources/openapi", "openapi.yaml")); supportingFiles.add(new SupportingFile("apiOperation.mustache", invokerFolder, "ApiOperation.java")); diff --git a/modules/openapi-generator/src/main/resources/Java/maven.yml.mustache b/modules/openapi-generator/src/main/resources/Java/maven.yml.mustache new file mode 100644 index 00000000000..f3c4733c306 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/maven.yml.mustache @@ -0,0 +1,31 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build {{{appName}}} + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + {{=< >=}} + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultGeneratorTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultGeneratorTest.java index f112a670c31..71b63ea25c2 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultGeneratorTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultGeneratorTest.java @@ -64,7 +64,7 @@ public class DefaultGeneratorTest { List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 43); + Assert.assertEquals(files.size(), 44); // Check expected generated files // api sanity check diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java index d328a4d6ae1..c62cbdd5616 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java @@ -290,7 +290,7 @@ public class JavaClientCodegenTest { DefaultGenerator generator = new DefaultGenerator(); List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 39); + Assert.assertEquals(files.size(), 40); TestUtils.ensureContainsFile(files, output, ".gitignore"); TestUtils.ensureContainsFile(files, output, ".openapi-generator-ignore"); TestUtils.ensureContainsFile(files, output, ".openapi-generator/FILES"); @@ -358,7 +358,7 @@ public class JavaClientCodegenTest { DefaultGenerator generator = new DefaultGenerator(); List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 42); + Assert.assertEquals(files.size(), 43); TestUtils.ensureContainsFile(files, output, ".gitignore"); TestUtils.ensureContainsFile(files, output, ".openapi-generator-ignore"); TestUtils.ensureContainsFile(files, output, ".openapi-generator/FILES"); @@ -429,7 +429,7 @@ public class JavaClientCodegenTest { DefaultGenerator generator = new DefaultGenerator(); List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 31); + Assert.assertEquals(files.size(), 32); validateJavaSourceFiles(files); TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/api/DefaultApi.java"), @@ -496,7 +496,7 @@ public class JavaClientCodegenTest { DefaultGenerator generator = new DefaultGenerator(); List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 34); + Assert.assertEquals(files.size(), 35); validateJavaSourceFiles(files); Path defaultApi = Paths.get(output + "/src/main/java/xyz/abcdef/api/PingApi.java"); @@ -998,7 +998,7 @@ public class JavaClientCodegenTest { DefaultGenerator generator = new DefaultGenerator(); List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 48); + Assert.assertEquals(files.size(), 49); TestUtils.ensureContainsFile(files, output, "src/main/java/org/openapitools/client/model/RealCommand.java"); TestUtils.ensureContainsFile(files, output, "src/main/java/org/openapitools/client/model/Command.java"); @@ -1270,7 +1270,7 @@ public class JavaClientCodegenTest { DefaultGenerator generator = new DefaultGenerator(); List files = generator.opts(clientOptInput).generate(); - Assert.assertEquals(files.size(), 34); + Assert.assertEquals(files.size(), 35); validateJavaSourceFiles(files); TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/ApiClient.java"), diff --git a/samples/client/others/java/okhttp-gson-streaming/.github/workflows/maven.yml b/samples/client/others/java/okhttp-gson-streaming/.github/workflows/maven.yml new file mode 100644 index 00000000000..46aa8645591 --- /dev/null +++ b/samples/client/others/java/okhttp-gson-streaming/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build ping some object + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/others/java/okhttp-gson-streaming/.openapi-generator/FILES b/samples/client/others/java/okhttp-gson-streaming/.openapi-generator/FILES index 77e02d36f05..1f0129a4d8c 100644 --- a/samples/client/others/java/okhttp-gson-streaming/.openapi-generator/FILES +++ b/samples/client/others/java/okhttp-gson-streaming/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/apache-httpclient/.github/workflows/maven.yml b/samples/client/petstore/java/apache-httpclient/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/apache-httpclient/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES b/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES index e8b75caa79f..18764e6e506 100644 --- a/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES +++ b/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/feign-no-nullable/.github/workflows/maven.yml b/samples/client/petstore/java/feign-no-nullable/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/feign-no-nullable/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/feign-no-nullable/.openapi-generator/FILES b/samples/client/petstore/java/feign-no-nullable/.openapi-generator/FILES index 60e36d2d8c2..e552623e40c 100644 --- a/samples/client/petstore/java/feign-no-nullable/.openapi-generator/FILES +++ b/samples/client/petstore/java/feign-no-nullable/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/feign/.github/workflows/maven.yml b/samples/client/petstore/java/feign/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/feign/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/feign/.openapi-generator/FILES b/samples/client/petstore/java/feign/.openapi-generator/FILES index 69579e43df6..72c610ee918 100644 --- a/samples/client/petstore/java/feign/.openapi-generator/FILES +++ b/samples/client/petstore/java/feign/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/google-api-client/.github/workflows/maven.yml b/samples/client/petstore/java/google-api-client/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/google-api-client/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/google-api-client/.openapi-generator/FILES b/samples/client/petstore/java/google-api-client/.openapi-generator/FILES index 2c1fbc8c4a0..80a873b2dc9 100644 --- a/samples/client/petstore/java/google-api-client/.openapi-generator/FILES +++ b/samples/client/petstore/java/google-api-client/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/jersey1/.github/workflows/maven.yml b/samples/client/petstore/java/jersey1/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/jersey1/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/jersey1/.openapi-generator/FILES b/samples/client/petstore/java/jersey1/.openapi-generator/FILES index e8b75caa79f..18764e6e506 100644 --- a/samples/client/petstore/java/jersey1/.openapi-generator/FILES +++ b/samples/client/petstore/java/jersey1/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/.github/workflows/maven.yml b/samples/client/petstore/java/jersey2-java8-localdatetime/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/.openapi-generator/FILES b/samples/client/petstore/java/jersey2-java8-localdatetime/.openapi-generator/FILES index 7869f0a5550..c1aca24c49d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/.openapi-generator/FILES +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/jersey2-java8/.github/workflows/maven.yml b/samples/client/petstore/java/jersey2-java8/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/jersey2-java8/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/jersey2-java8/.openapi-generator/FILES b/samples/client/petstore/java/jersey2-java8/.openapi-generator/FILES index 7869f0a5550..c1aca24c49d 100644 --- a/samples/client/petstore/java/jersey2-java8/.openapi-generator/FILES +++ b/samples/client/petstore/java/jersey2-java8/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/native-async/.github/workflows/maven.yml b/samples/client/petstore/java/native-async/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/native-async/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/native-async/.openapi-generator/FILES b/samples/client/petstore/java/native-async/.openapi-generator/FILES index f25839d05a5..9f46a0d9907 100644 --- a/samples/client/petstore/java/native-async/.openapi-generator/FILES +++ b/samples/client/petstore/java/native-async/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/native/.github/workflows/maven.yml b/samples/client/petstore/java/native/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/native/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/native/.openapi-generator/FILES b/samples/client/petstore/java/native/.openapi-generator/FILES index f25839d05a5..9f46a0d9907 100644 --- a/samples/client/petstore/java/native/.openapi-generator/FILES +++ b/samples/client/petstore/java/native/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/.github/workflows/maven.yml b/samples/client/petstore/java/okhttp-gson-dynamicOperations/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/.openapi-generator/FILES b/samples/client/petstore/java/okhttp-gson-dynamicOperations/.openapi-generator/FILES index f21fe42c6bc..6421a5fdb8d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/.openapi-generator/FILES +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/.github/workflows/maven.yml b/samples/client/petstore/java/okhttp-gson-parcelableModel/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/.openapi-generator/FILES b/samples/client/petstore/java/okhttp-gson-parcelableModel/.openapi-generator/FILES index a2155ab98ab..2d7bc290cd0 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/.openapi-generator/FILES +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/okhttp-gson/.github/workflows/maven.yml b/samples/client/petstore/java/okhttp-gson/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/okhttp-gson/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/okhttp-gson/.openapi-generator/FILES b/samples/client/petstore/java/okhttp-gson/.openapi-generator/FILES index 79249be8d25..46193871c2e 100644 --- a/samples/client/petstore/java/okhttp-gson/.openapi-generator/FILES +++ b/samples/client/petstore/java/okhttp-gson/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/rest-assured-jackson/.github/workflows/maven.yml b/samples/client/petstore/java/rest-assured-jackson/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/rest-assured-jackson/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/rest-assured-jackson/.openapi-generator/FILES b/samples/client/petstore/java/rest-assured-jackson/.openapi-generator/FILES index fdaf5d99302..420708916e9 100644 --- a/samples/client/petstore/java/rest-assured-jackson/.openapi-generator/FILES +++ b/samples/client/petstore/java/rest-assured-jackson/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/rest-assured/.github/workflows/maven.yml b/samples/client/petstore/java/rest-assured/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/rest-assured/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/rest-assured/.openapi-generator/FILES b/samples/client/petstore/java/rest-assured/.openapi-generator/FILES index 7aca148823e..5839b8a8576 100644 --- a/samples/client/petstore/java/rest-assured/.openapi-generator/FILES +++ b/samples/client/petstore/java/rest-assured/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/resteasy/.github/workflows/maven.yml b/samples/client/petstore/java/resteasy/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/resteasy/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/resteasy/.openapi-generator/FILES b/samples/client/petstore/java/resteasy/.openapi-generator/FILES index 4f43b35a738..53a94697817 100644 --- a/samples/client/petstore/java/resteasy/.openapi-generator/FILES +++ b/samples/client/petstore/java/resteasy/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/resttemplate-withXml/.github/workflows/maven.yml b/samples/client/petstore/java/resttemplate-withXml/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/resttemplate-withXml/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/resttemplate-withXml/.openapi-generator/FILES b/samples/client/petstore/java/resttemplate-withXml/.openapi-generator/FILES index fc83fa09e36..399977b8b4f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/.openapi-generator/FILES +++ b/samples/client/petstore/java/resttemplate-withXml/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/resttemplate/.github/workflows/maven.yml b/samples/client/petstore/java/resttemplate/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/resttemplate/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/resttemplate/.openapi-generator/FILES b/samples/client/petstore/java/resttemplate/.openapi-generator/FILES index fc83fa09e36..399977b8b4f 100644 --- a/samples/client/petstore/java/resttemplate/.openapi-generator/FILES +++ b/samples/client/petstore/java/resttemplate/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/retrofit2-play26/.github/workflows/maven.yml b/samples/client/petstore/java/retrofit2-play26/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/retrofit2-play26/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/retrofit2-play26/.openapi-generator/FILES b/samples/client/petstore/java/retrofit2-play26/.openapi-generator/FILES index 7dee55296a7..efc123c78ce 100644 --- a/samples/client/petstore/java/retrofit2-play26/.openapi-generator/FILES +++ b/samples/client/petstore/java/retrofit2-play26/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/retrofit2/.github/workflows/maven.yml b/samples/client/petstore/java/retrofit2/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/retrofit2/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/retrofit2/.openapi-generator/FILES b/samples/client/petstore/java/retrofit2/.openapi-generator/FILES index 4c09d573d49..bdac9a27ea5 100644 --- a/samples/client/petstore/java/retrofit2/.openapi-generator/FILES +++ b/samples/client/petstore/java/retrofit2/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/retrofit2rx2/.github/workflows/maven.yml b/samples/client/petstore/java/retrofit2rx2/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/retrofit2rx2/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/retrofit2rx2/.openapi-generator/FILES b/samples/client/petstore/java/retrofit2rx2/.openapi-generator/FILES index 4c09d573d49..bdac9a27ea5 100644 --- a/samples/client/petstore/java/retrofit2rx2/.openapi-generator/FILES +++ b/samples/client/petstore/java/retrofit2rx2/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/retrofit2rx3/.github/workflows/maven.yml b/samples/client/petstore/java/retrofit2rx3/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/retrofit2rx3/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/retrofit2rx3/.openapi-generator/FILES b/samples/client/petstore/java/retrofit2rx3/.openapi-generator/FILES index 4c09d573d49..bdac9a27ea5 100644 --- a/samples/client/petstore/java/retrofit2rx3/.openapi-generator/FILES +++ b/samples/client/petstore/java/retrofit2rx3/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/vertx-no-nullable/.github/workflows/maven.yml b/samples/client/petstore/java/vertx-no-nullable/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/vertx-no-nullable/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/vertx-no-nullable/.openapi-generator/FILES b/samples/client/petstore/java/vertx-no-nullable/.openapi-generator/FILES index 71b0a60e280..c588a14f162 100644 --- a/samples/client/petstore/java/vertx-no-nullable/.openapi-generator/FILES +++ b/samples/client/petstore/java/vertx-no-nullable/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/vertx/.github/workflows/maven.yml b/samples/client/petstore/java/vertx/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/vertx/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/vertx/.openapi-generator/FILES b/samples/client/petstore/java/vertx/.openapi-generator/FILES index 71b0a60e280..c588a14f162 100644 --- a/samples/client/petstore/java/vertx/.openapi-generator/FILES +++ b/samples/client/petstore/java/vertx/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/webclient-nulable-arrays/.github/workflows/maven.yml b/samples/client/petstore/java/webclient-nulable-arrays/.github/workflows/maven.yml new file mode 100644 index 00000000000..c617d2e4fb2 --- /dev/null +++ b/samples/client/petstore/java/webclient-nulable-arrays/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build Minimal Example + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/webclient-nulable-arrays/.openapi-generator/FILES b/samples/client/petstore/java/webclient-nulable-arrays/.openapi-generator/FILES index eaed93f7b08..4f38a796a27 100644 --- a/samples/client/petstore/java/webclient-nulable-arrays/.openapi-generator/FILES +++ b/samples/client/petstore/java/webclient-nulable-arrays/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/client/petstore/java/webclient/.github/workflows/maven.yml b/samples/client/petstore/java/webclient/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/client/petstore/java/webclient/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/client/petstore/java/webclient/.openapi-generator/FILES b/samples/client/petstore/java/webclient/.openapi-generator/FILES index e0a4c162f50..4e0bb18ff08 100644 --- a/samples/client/petstore/java/webclient/.openapi-generator/FILES +++ b/samples/client/petstore/java/webclient/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.github/workflows/maven.yml b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.github/workflows/maven.yml new file mode 100644 index 00000000000..423ba386e8f --- /dev/null +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Extension x-auth-id-alias + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.openapi-generator/FILES b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.openapi-generator/FILES index 6277d88f5ab..bd814473a6e 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.openapi-generator/FILES +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.github/workflows/maven.yml b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.github/workflows/maven.yml new file mode 100644 index 00000000000..2f79e716371 --- /dev/null +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build test + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.openapi-generator/FILES b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.openapi-generator/FILES index c209475dd6e..164e9f57c01 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/.github/workflows/maven.yml b/samples/openapi3/client/petstore/java/jersey2-java8/.github/workflows/maven.yml new file mode 100644 index 00000000000..89fbd4999bc --- /dev/null +++ b/samples/openapi3/client/petstore/java/jersey2-java8/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build OpenAPI Petstore + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/.openapi-generator/FILES b/samples/openapi3/client/petstore/java/jersey2-java8/.openapi-generator/FILES index defcfc521a2..d9a7d4789da 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/java/jersey2-java8/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md