Skip to content

Commit

Permalink
[ci-skip] Update Workflow (#428)
Browse files Browse the repository at this point in the history
* [ci-skip] Update Workflow

Add :
- Cache Gradle
- Dont build if contains: [ci-skip]
- Update setup-java to v2

* Update gradle.yml
  • Loading branch information
Euphillya authored Oct 4, 2021
1 parent 048c181 commit 4e5f84c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e5f84c

Please sign in to comment.