Files

29 lines
753 B
YAML
Raw Permalink Normal View History

2021-08-24 18:25:52 +03:00
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2020-03-17 11:17:19 +00:00
# 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:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-03-17 11:17:19 +00:00
pull_request:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-03-17 11:17:19 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
2020-03-17 11:17:19 +00:00
with:
java-version: '11'
2021-03-11 12:56:09 +03:00
distribution: 'adopt'
cache: gradle
2020-03-17 11:17:19 +00:00
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build