From 4e5f84ce10d7dbb921823530cffc50b67754b21e Mon Sep 17 00:00:00 2001 From: Bierque Jason Date: Mon, 4 Oct 2021 16:01:26 +0200 Subject: [PATCH] [ci-skip] Update Workflow (#428) * [ci-skip] Update Workflow Add : - Cache Gradle - Dont build if contains: [ci-skip] - Update setup-java to v2 * Update gradle.yml --- .github/workflows/gradle.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9237e4a45..f038117dc 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -2,23 +2,21 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle name: Java CI with Gradle - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [ push, pull_request ] jobs: build: runs-on: ubuntu-latest - + if: "!contains(github.event.commits[0].message, '[ci-skip]')" steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: gradle/wrapper-validation-action@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v2 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Test with Gradle