From f870a7ab567caef5fed7b4821777e3e2a3f6f0db Mon Sep 17 00:00:00 2001 From: Prakash Date: Mon, 2 Sep 2024 07:26:41 -0400 Subject: [PATCH] Adding maven build logic --- .github/workflows/maven-build.yml | 35 ++++++++++--------------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 4718a6c..39b7660 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -1,29 +1,16 @@ -# This workflow will build a Java project with Maven, 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-maven - -name: Java CI with Maven +run-name: maven-ci-build on: - push: - branches: [ main ] pull_request: - branches: [ main ] + branches: + - main + path-ignore: + - '.git/**' + - '.github/**' jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - java: [ '17' ] - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK ${{matrix.java}} - uses: actions/setup-java@v4 - with: - java-version: ${{matrix.java}} - distribution: 'adopt' - cache: maven - - name: Build with Maven Wrapper - run: ./mvnw -B package + maven-build: + runs-on: ubuntu-latest + steps: + - name: Running Maven Test + run: echo "The username is $${{ input.username }}"