-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (22 loc) · 916 Bytes
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: 'Java CI'
on: ['push', 'pull_request']
jobs:
build:
name: 'Build'
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v4' # https://github.com/marketplace/actions/checkout
- name: 'Gradle Wrapper Validation'
uses: 'gradle/actions/wrapper-validation@v3' # https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#usage
- name: 'Setup Java JDK'
uses: 'actions/setup-java@v4' # https://github.com/marketplace/actions/setup-java-jdk
with:
distribution: 'temurin'
java-version-file: '.java-version'
- name: 'Setup Gradle'
uses: 'gradle/actions/setup-gradle@v3' # https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#general-usage
with:
gradle-version: 'wrapper'
- name: 'Execute Gradle'
run: './gradlew build --warning-mode=all'