Skip to content

Commit

Permalink
Merge pull request prestodb#282 from Dilli-Babu-Godari/add-ci-gradle
Browse files Browse the repository at this point in the history
Add GitHub Action for Gradle build in Java CI
  • Loading branch information
tdcmeehan authored Dec 13, 2024
2 parents 2a7cfc4 + 5f3540e commit 7fea4ee
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 7fea4ee

Please sign in to comment.