Skip to content

Add build CI

Add build CI #3

name: Build Gradle project
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Setup 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 Gradle wrapper
run: gradle wrapper
- name: Run build
run: ./gradlew build