From 023aa71f42adce7977a91401034cfce29370bb43 Mon Sep 17 00:00:00 2001 From: pawan kumar <98738334+thepawankumar@users.noreply.github.com> Date: Thu, 24 Nov 2022 11:34:01 +0530 Subject: [PATCH 1/5] Create gradle.yml --- .github/workflows/gradle.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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 0000000..3dbc8dd --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: build From 1b506e6a5075487422a493bfc8a2a1c1056731db Mon Sep 17 00:00:00 2001 From: pawan kumar <98738334+thepawankumar@users.noreply.github.com> Date: Thu, 24 Nov 2022 11:35:57 +0530 Subject: [PATCH 2/5] Create gradle001.yml --- .github/workflows/gradle001.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/gradle001.yml diff --git a/.github/workflows/gradle001.yml b/.github/workflows/gradle001.yml new file mode 100644 index 0000000..170f790 --- /dev/null +++ b/.github/workflows/gradle001.yml @@ -0,0 +1,10 @@ +name: Build +on: [pull_request, push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v2 + - name: Build the app + run: ./gradlew build From 4ef320223e99473570ffb17d99f21802f690e865 Mon Sep 17 00:00:00 2001 From: pawan kumar <98738334+thepawankumar@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:35:47 +0530 Subject: [PATCH 3/5] Update gradle001.yml --- .github/workflows/gradle001.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle001.yml b/.github/workflows/gradle001.yml index 170f790..1b8b53f 100644 --- a/.github/workflows/gradle001.yml +++ b/.github/workflows/gradle001.yml @@ -1,10 +1,20 @@ -name: Build -on: [pull_request, push] +name: Java CI + +on: [push] + jobs: build: + runs-on: ubuntu-latest + steps: - - name: Checkout the code - uses: actions/checkout@v2 - - name: Build the app - run: ./gradlew build + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Change wrapper permissions + run: chmod +x ./gradlew + - name: Build with Gradle + run: ./gradlew build + From 7d97816d8b5d905c556b36d4aa5b9bb1c3c2eab9 Mon Sep 17 00:00:00 2001 From: pawan kumar <98738334+thepawankumar@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:36:05 +0530 Subject: [PATCH 4/5] Update gradle001.yml --- .github/workflows/gradle001.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/gradle001.yml b/.github/workflows/gradle001.yml index 1b8b53f..76d33d1 100644 --- a/.github/workflows/gradle001.yml +++ b/.github/workflows/gradle001.yml @@ -17,4 +17,3 @@ jobs: run: chmod +x ./gradlew - name: Build with Gradle run: ./gradlew build - From 06731ff8c65ba2d353e1936bd54f685acd96d823 Mon Sep 17 00:00:00 2001 From: pawan kumar <98738334+thepawankumar@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:37:37 +0530 Subject: [PATCH 5/5] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6554e1f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello