diff --git a/.github/workflows/samples-jdk17.yaml b/.github/workflows/samples-jdk17.yaml new file mode 100644 index 000000000000..36b76e03474b --- /dev/null +++ b/.github/workflows/samples-jdk17.yaml @@ -0,0 +1,43 @@ +name: Samples JDK17 +on: + push: + paths: + # clients + - samples/openapi3/client/petstore/spring-cloud-3 + # servers + - samples/openapi3/server/petstore/springboot-3 + pull_request: + paths: + # clients + - samples/openapi3/client/petstore/spring-cloud-3 + # servers + - samples/openapi3/server/petstore/springboot-3 +jobs: + build: + name: Build with JDK17 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sample: + # clients + - samples/openapi3/client/petstore/spring-cloud-3 + # servers + - samples/openapi3/server/petstore/springboot-3 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + - name: Cache maven dependencies + uses: actions/cache@v3 + env: + cache-name: maven-repository + with: + path: | + ~/.m2 + key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} + - name: Build + working-directory: ${{ matrix.sample }} + run: mvn clean package diff --git a/.github/workflows/samples-spring.yaml b/.github/workflows/samples-spring.yaml index 790ae2416bdc..941c9f3ad2e7 100644 --- a/.github/workflows/samples-spring.yaml +++ b/.github/workflows/samples-spring.yaml @@ -25,7 +25,6 @@ jobs: - samples/client/petstore/spring-stubs - samples/openapi3/client/petstore/spring-stubs - samples/openapi3/client/petstore/spring-stubs-skip-default-interface - - samples/openapi3/client/petstore/spring-cloud-3 # servers - samples/server/petstore/springboot - samples/openapi3/server/petstore/springboot @@ -42,7 +41,6 @@ jobs: - samples/server/petstore/spring-boot-defaultInterface-unhandledException - samples/openapi3/server/petstore/spring-boot-oneof - samples/server/petstore/springboot-virtualan - - samples/openapi3/server/petstore/springboot-3 steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3