2020-12-20 13:48:00 -05:00
|
|
|
# This workflow will build a Java project with Gradle
|
|
|
|
# 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: [ trunk ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ trunk ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up JDK 1.8
|
2021-07-04 10:02:27 -04:00
|
|
|
uses: actions/setup-java@v2
|
2021-07-04 10:07:10 -04:00
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
|
|
|
java-version: '8'
|
|
|
|
check-latest: true
|
2020-12-20 13:48:00 -05:00
|
|
|
|
2021-02-06 19:30:41 -05:00
|
|
|
- name: Cache Gradle wrapper and dependencies
|
2020-12-20 13:48:00 -05:00
|
|
|
uses: actions/cache@v2.1.3
|
|
|
|
with:
|
2021-02-06 19:30:41 -05:00
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2020-12-20 13:48:00 -05:00
|
|
|
|
2021-02-11 17:27:46 -05:00
|
|
|
- name: Verify Gradle wrapper
|
2021-02-07 06:03:01 -05:00
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
2020-12-20 13:48:00 -05:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
|
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew check
|