test java clients with petstore in github workflow #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Samples Java Client JDK11 | |
| on: | |
| push: | |
| paths: | |
| - samples/client/petstore/java/jersey2-java8/** | |
| - samples/openapi3/client/petstore/java/jersey2-java8/** | |
| - samples/client/petstore/java/jersey3/** | |
| - samples/client/petstore/java/jersey3-oneOf/** | |
| - samples/client/others/java/okhttp-gson-streaming/** | |
| - samples/client/petstore/java/okhttp-gson/** | |
| - samples/client/petstore/java/okhttp-gson-3.1/** | |
| - samples/client/petstore/java/okhttp-gson-dynamicOperations/** | |
| - samples/client/petstore/java/resteasy/** | |
| - samples/client/petstore/java-micronaut-client/** | |
| - samples/client/petstore/java/apache-httpclient/** | |
| - samples/client/petstore/java/resttemplate-jakarta/** | |
| pull_request: | |
| paths: | |
| - samples/client/petstore/java/jersey2-java8/** | |
| - samples/openapi3/client/petstore/java/jersey2-java8/** | |
| - samples/client/petstore/java/jersey3/** | |
| - samples/client/petstore/java/jersey3-oneOf/** | |
| - samples/client/others/java/okhttp-gson-streaming/** | |
| - samples/client/petstore/java/okhttp-gson/** | |
| - samples/client/petstore/java/okhttp-gson-3.1/** | |
| - samples/client/petstore/java/okhttp-gson-dynamicOperations/** | |
| - samples/client/petstore/java/resteasy/** | |
| - samples/client/petstore/java-micronaut-client/** | |
| - samples/client/petstore/java/apache-httpclient/** | |
| - samples/client/petstore/java/resttemplate-jakarta/** | |
| jobs: | |
| build: | |
| name: Build Java Client JDK11 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sample: | |
| - samples/client/petstore/java/jersey2-java8 | |
| - samples/openapi3/client/petstore/java/jersey2-java8 | |
| - samples/client/petstore/java/jersey3 | |
| - samples/client/petstore/java/jersey3-oneOf | |
| - samples/client/others/java/okhttp-gson-streaming | |
| - samples/client/petstore/java/okhttp-gson | |
| - samples/client/petstore/java/okhttp-gson-3.1 | |
| - samples/client/petstore/java/okhttp-gson-dynamicOperations | |
| - samples/client/petstore/java/resteasy | |
| - samples/client/petstore/java-micronaut-client | |
| - samples/client/petstore/java/apache-httpclient | |
| - samples/client/petstore/java/resttemplate-jakarta | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| - name: Cache maven dependencies | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: maven-repository | |
| with: | |
| path: | | |
| ~/.m2 | |
| key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | |
| - name: Build with Maven | |
| working-directory: ${{ matrix.sample }} | |
| run: mvn clean package --no-transfer-progress |