Merge pull request #1381 from znsio/discriminator_based_example_gen #3973
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: 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/ |