From a5ed03a9d4e7004cc934824aa58c139e1196f249 Mon Sep 17 00:00:00 2001 From: vishnu vishal Date: Fri, 17 Mar 2023 16:23:09 +0530 Subject: [PATCH] Github actions added --- .github/workflows/on-pull-request.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/on-pull-request.yml diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml new file mode 100644 index 0000000..ccabfd1 --- /dev/null +++ b/.github/workflows/on-pull-request.yml @@ -0,0 +1,27 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Run chmod to make gradlew executable + run: chmod +x ./gradlew + - name: Build with Gradle + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: build + - run: ./gradlew spotlessCheck