From d77670c1c24c4d93665402da62be8fa96f82e908 Mon Sep 17 00:00:00 2001 From: MattMX Date: Wed, 18 Sep 2024 14:55:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Add=20github=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ settings.gradle.kts | 13 +++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ba49d37 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +# Will simply build your gradle project. +name: Build Gradle Project + +# This action will run every time you push to the "dev" branch. +on: + push: + branches: + - "dev*" + +jobs: + build-project: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + - name: Checkout project sources + uses: actions/checkout@v3 + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Make gradlew executable + run: chmod +x ./gradlew + - name: Run build with Gradle Wrapper + run: ./gradlew build \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index dee29cc..4e1ed09 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -9,6 +9,15 @@ pluginManagement { } plugins { - // add toolchain resolver - id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" + id("com.gradle.enterprise") version("3.15") +} + +gradleEnterprise { + if (System.getenv("CI") != null) { + buildScan { + publishAlways() + termsOfServiceUrl = "https://gradle.com/terms-of-service" + termsOfServiceAgree = "yes" + } + } } \ No newline at end of file