Skip to content

Implement discriminator based generation for schema examples #4176

Implement discriminator based generation for schema examples

Implement discriminator based generation for schema examples #4176

Workflow file for this run

name: CI Build
on:
push:
branches: [ main, spring-issues ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
./gradlew clean
git clean -fd
./gradlew build
- name: Fail if slf4j is found in the log
if: matrix.os == 'ubuntu-latest'
run: |
set +e
java -jar application/build/libs/specmatic.jar --version 2>&1 | grep -i slf4j
if [ $? -eq 0 ]
then
exit 1
fi
- name: Upload core Gradle Log
if: always()
uses: actions/upload-artifact@v4
with:
name: Gradle core build Log on ${{ matrix.os }}
path: core/build/reports/
- name: Upload junit5-support Gradle Log
if: always()
uses: actions/upload-artifact@v4
with:
name: Gradle junit5-support build Log on ${{ matrix.os }}
path: junit5-support/build/reports/
- name: Upload application Gradle Log
if: always()
uses: actions/upload-artifact@v4
with:
name: Gradle application build Log on ${{ matrix.os }}
path: application/build/reports/