From f113dff0bef0e9174c0046be443f6229c31f7cfa Mon Sep 17 00:00:00 2001 From: vishnus0515 <138965639+vishnus0515@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:46:48 +0530 Subject: [PATCH] Create ci.gradle.yml --- .github/workflows/ci.gradle.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.gradle.yml diff --git a/.github/workflows/ci.gradle.yml b/.github/workflows/ci.gradle.yml new file mode 100644 index 000000000..ebd239737 --- /dev/null +++ b/.github/workflows/ci.gradle.yml @@ -0,0 +1,32 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'adopt' + cache : gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle Wrapper + run: ./gradlew build + +