2021-12-27 19:01:45 +01:00
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
|
|
# They are provided by a third-party and are governed by
|
|
|
|
# separate terms of service, privacy policy, and support
|
|
|
|
# documentation.
|
|
|
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
|
|
|
# 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 ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-27 19:20:06 +01:00
|
|
|
- name: Set up JDK 11
|
2021-12-27 19:07:05 +01:00
|
|
|
uses: actions/setup-java@v1
|
2021-12-27 19:01:45 +01:00
|
|
|
with:
|
2021-12-27 19:20:06 +01:00
|
|
|
java-version: '11'
|
2021-12-27 19:01:45 +01:00
|
|
|
distribution: 'adopt'
|
2021-12-27 19:24:16 +01:00
|
|
|
cache: gradle
|
2021-12-27 19:20:06 +01:00
|
|
|
- name: Validate Gradle wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
2021-12-27 19:21:59 +01:00
|
|
|
- name: Make gradlew executable
|
|
|
|
run: chmod +x ./gradlew
|
2021-12-27 20:28:45 +01:00
|
|
|
- name: Generate SourceCode with Gradle
|
|
|
|
run: ./gradlew generateGithubSource
|
2021-12-27 19:01:45 +01:00
|
|
|
- name: Build with Gradle
|
2021-12-27 19:10:09 +01:00
|
|
|
run: ./gradlew build
|