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 ]
|
|
|
|
|
2022-04-26 08:00:44 -04:00
|
|
|
permissions: {}
|
|
|
|
|
2020-12-20 13:48:00 -05:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-11-30 10:37:44 -05:00
|
|
|
- uses: actions/checkout@v4
|
2020-12-20 13:48:00 -05:00
|
|
|
|
2021-07-04 18:22:53 -04:00
|
|
|
- name: Set up JDK
|
2023-11-30 10:37:44 -05:00
|
|
|
uses: actions/setup-java@v4
|
2021-07-04 10:07:10 -04:00
|
|
|
with:
|
2021-11-29 14:10:58 -05:00
|
|
|
distribution: 'temurin'
|
2023-03-20 20:31:24 -04:00
|
|
|
java-version: '11'
|
2022-08-18 17:45:29 -04:00
|
|
|
cache: 'gradle'
|
2020-12-20 13:48:00 -05:00
|
|
|
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
|
|
|
|
- name: Build with Gradle
|
2023-03-20 20:31:24 -04:00
|
|
|
run: ./gradlew check -PjdkVersion=11 --no-daemon --refresh-dependencies
|