Merge pull request #915 from dddjava/dependabot/gradle/org.jetbrains.… #240
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
java-version: [ '11' ] | |
name: build Java ${{ matrix.java-version }} (${{ matrix.os }}) | |
env: | |
GRADLE_OPTS: '-Dorg.gradle.daemon=false' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
- name: Run Build | |
run: | | |
./gradlew build | |
- name: Upload test failure report | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-failure-reports-${{ matrix.java-version }}-${{ runner.os }} | |
path: jig-*/build/reports/tests/test/ | |
retention-days: 3 | |
build-17: | |
needs: build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
java-version: [ '17' ] | |
name: build Java ${{ matrix.java-version }} (${{ matrix.os }}) | |
env: | |
GRADLE_OPTS: '-Dorg.gradle.daemon=false' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
- name: Run Build | |
run: | | |
./gradlew build | |
- name: Upload test failure report | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-failure-reports-${{ matrix.java-version }}-${{ runner.os }} | |
path: jig-*/build/reports/tests/test/ | |
retention-days: 3 |