increase minor version because of jvm 17 -> 21 switch. #190
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: Build and Test | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
- beta | |
- "epic/**" | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
build: | |
name: "Build" | |
timeout-minutes: 10 | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Branch" | |
uses: actions/checkout@v4 | |
- name: "Setup Java" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup Gradle cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle | |
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }} | |
restore-keys: | | |
${{ runner.os }}-gradle | |
- name: "build backend" | |
run: ./gradlew build -x test | |
- name: Upload Gradle reports | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: Build Backend Reports | |
path: "**/build/reports" | |
test: | |
name: "Test" | |
timeout-minutes: 30 | |
if: github.event.pull_request.draft == false | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Branch" | |
uses: actions/checkout@v4 | |
- name: "Setup Java" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup Gradle cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle | |
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }} | |
restore-keys: | | |
${{ runner.os }}-gradle | |
- name: "test backend" | |
run: ./gradlew cleanTest check --no-build-cache | |
env: | |
RUN_LONG_INTEGRATION_TESTS: false | |
- name: Upload Gradle reports | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: Test Backend Reports | |
path: "**/build/reports" |