Skip to content

Commit

Permalink
🔨 Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-MX committed Sep 18, 2024
1 parent 0fea7a6 commit d77670c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 11 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit d77670c

Please sign in to comment.