From d001410726a42114a303bbf9112709ebafdce8f7 Mon Sep 17 00:00:00 2001 From: vichusharma Date: Sat, 19 Dec 2020 13:44:46 +0530 Subject: [PATCH 1/2] Create ci.yml Adding actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..fdc4515 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B package --file pom.xml From a73a8b6a7b0955658ba0bf5ca03fea122324ab7f Mon Sep 17 00:00:00 2001 From: vichusharma Date: Sat, 19 Dec 2020 14:55:51 +0530 Subject: [PATCH 2/2] Update ci.yml Downgrading Java --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdc4515..0c8ce6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK 1.7 uses: actions/setup-java@v1 with: java-version: 1.8