Skip to content

Add build CI

Add build CI #5

name: Build Gradle project
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Check out project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: https://gradle.com/terms-of-service
build-scan-terms-of-use-agree: yes
- name: Generate wrapper
run: gradle wrapper
- name: Run build
run: ./gradlew build