2023-06-04 11:29:32 +00:00
|
|
|
# Automatically build the project and run any configured tests for every push
|
|
|
|
# and submitted pull request. This can help catch issues that only occur on
|
|
|
|
# certain platforms or Java versions, and provides a first line of defence
|
|
|
|
# against bad commits.
|
|
|
|
|
|
|
|
name: build
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-06-04 12:07:10 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-06-04 11:29:32 +00:00
|
|
|
steps:
|
|
|
|
- name: checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: validate gradle wrapper
|
2023-06-04 11:37:17 +00:00
|
|
|
uses: https://github.com/gradle/wrapper-validation-action@v1
|
2023-06-04 12:07:10 +00:00
|
|
|
- name: setup jdk 17
|
2023-06-04 11:29:32 +00:00
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
2023-06-04 12:07:10 +00:00
|
|
|
java-version: 17
|
2023-06-04 11:41:10 +00:00
|
|
|
distribution: 'oracle'
|
2023-06-04 11:29:32 +00:00
|
|
|
- name: make gradle wrapper executable
|
|
|
|
run: chmod +x ./gradlew
|
|
|
|
- name: build
|
|
|
|
run: ./gradlew build
|