Skip to content

Commit

Permalink
Test JDK 17 in github workflow (OpenAPITools#12583)
Browse files Browse the repository at this point in the history
* test jdk17 in github workflow

* trigger build

* trigger tests

* Revert "trigger build"

This reverts commit 77c4d85.

* add branch for tests

* disable spring tests

* trigger build

* remove path

* undo changes
  • Loading branch information
wing328 authored Jun 13, 2022
1 parent bf22f38 commit 3190084
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/samples-jdk17.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions .github/workflows/samples-spring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3190084

Please sign in to comment.