mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
* add lombok model support on spring * use regex to adapt annotation with parenthesis * add ut case * add samples * add samples * fix github workflow * fix github workflow
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: Samples Java Spring (JDK17)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
|
pull_request:
|
|
paths:
|
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
|
- samples/server/petstore/springboot-lombok-data
|
|
- samples/server/petstore/springboot-lombok-tostring
|
|
jobs:
|
|
build:
|
|
name: Build Java Spring (JDK17)
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# clients
|
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
|
# servers
|
|
- samples/server/petstore/springboot-lombok-data
|
|
- samples/server/petstore/springboot-lombok-tostring
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 17
|
|
- 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
|
|
working-directory: ${{ matrix.sample }}
|
|
run: mvn clean package
|