mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 15:51:38 +00:00
* test jdk17 in github workflow * trigger build * trigger tests * Revert "trigger build" This reverts commit 77c4d859b01a1a8f1c0202b1b2e70730a643a334. * add branch for tests * disable spring tests * trigger build * remove path * undo changes
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
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
|