Switch to gradle-build-action
This commit is contained in:
committed by
Leonard Brünings
parent
3f8fd7ea89
commit
b338e49f7d
@@ -13,26 +13,21 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache Gradle wrapper and dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/dists
|
||||
key: test-${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle.properties', 'gradle/**', 'buildSrc/src/main/**') }}
|
||||
restore-keys: |
|
||||
test-${{ runner.os }}-gradle-
|
||||
- name: 'Set up JDK'
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 8
|
||||
distribution: temurin
|
||||
- name: 'Gradle Version'
|
||||
run: |
|
||||
./gradlew --version
|
||||
- name: 'Init Gradle Build Action'
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
# cache options only count for the first invocation
|
||||
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
|
||||
arguments: --version
|
||||
- name: 'Check Spock'
|
||||
run: |
|
||||
./gradlew --no-daemon --stacktrace check
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: check
|
||||
check-maven:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user