Major bumps of dependencies++ made application ready for gradle 9 #5
Workflow file for this run
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, pull_request] | |
jobs: | |
build: | |
name: Checkout code and test, clean build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('build.gradle.kts') }} | |
restore-keys: | | |
${{ runner.os }}-gradle-cache- | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle-wrapper- | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Run tests | |
run: | | |
./gradlew test | |
- name: Run clean build | |
run: | | |
./gradlew clean build |