From 5f3540eef6feee8e0d8013ff771bebe3b9d23fdd Mon Sep 17 00:00:00 2001 From: Dilli-Babu-Godari Date: Thu, 12 Dec 2024 14:54:10 +0530 Subject: [PATCH] Add GitHub Action for Gradle build in Java CI Added a GitHub Action workflow to run Gradle build for the prestodb/tempto repository. This action automates the CI process for Java projects and ensures consistency in builds for every push and pull request to the master branch. PR: https://github.com/Dilli-Babu-Godari/tempto/pull/2 This PR serves as proof that the CI configuration functions correctly. --- .github/workflows/gradle.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 00000000..f0d97ad5 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,38 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + java-version: + - 8 + steps: + - uses: actions/checkout@v4 + with: + show-progress: false + fetch-depth: 0 + + # Step to set up JDK + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java-version }} + distribution: 'temurin' + cache: gradle + + # Step to set up gradle.properties + - name: Set up gradle.properties + run: | + echo "skipSigning=false" >> gradle.properties + + # Step to run Gradle build + - name: Gradle Build + run: ./gradlew build