From 6052e5ff672760140da681ca5599b901c8e25f38 Mon Sep 17 00:00:00 2001 From: chathuranga-jayanath-99 <85400922+chathuranga-jayanath-99@users.noreply.github.com> Date: Mon, 9 May 2022 23:32:12 +0530 Subject: [PATCH 1/2] create ci.yml ci-workflow created --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..9bf02b15ce --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +# 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://help.github.com/actions/language-and-framework-guides/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@0d13054264b0bb894ded474f08ebb30921341cee + with: + arguments: build + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with gradle + run: ./gradlew build + - name: Run tests + run: ./gradlew test From 5a0f2657d3d409c33398f3a0e60ce19c2088e7b7 Mon Sep 17 00:00:00 2001 From: chathuranga-jayanath-99 <85400922+chathuranga-jayanath-99@users.noreply.github.com> Date: Mon, 9 May 2022 23:39:08 +0530 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bf02b15ce..f80a65cedc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,14 +28,14 @@ jobs: with: java-version: '11' distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee - with: - arguments: build +# - name: Build with Gradle +# uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee +# with: +# arguments: build - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with gradle run: ./gradlew build - - name: Run tests - run: ./gradlew test +# - name: Run tests +# run: ./gradlew test