build: use ModelUtils for getAdditionalProperties #2
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
name: Maven plugin tests | |
on: | |
push: | |
paths: | |
- modules/openapi-generator-maven-plugin/** | |
pull_request: | |
paths: | |
- modules/openapi-generator-maven-plugin/** | |
jobs: | |
test: | |
name: Maven plugin tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
- name: Cache maven dependencies | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-maven-repository | |
with: | |
path: | | |
~/.m2/repository | |
~/.gradle | |
!~/.gradle/caches/*/plugin-resolution/ | |
!~/.m2/repository/org/openapitools/ | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}- | |
${{ runner.os }}-test-maven-plugin- | |
- name: Run tests | |
env: | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
run: | | |
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true | |
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error | |
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error | |
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error | |
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error |