Skip to content

Commit

Permalink
Add GitHub Action for Gradle build in Java CI
Browse files Browse the repository at this point in the history
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: #2
This PR serves as proof that the CI configuration functions correctly.
  • Loading branch information
Dilli-Babu-Godari authored and godaridillibabu committed Dec 13, 2024
1 parent 2a7cfc4 commit 5f3540e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5f3540e

Please sign in to comment.