forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test JDK 17 in github workflow (OpenAPITools#12583)
* 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
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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