From cdfb3dadaedf33d20bc25b3b6341a288718c7d7f Mon Sep 17 00:00:00 2001 From: subham-santra <32807547+Subham1999@users.noreply.github.com> Date: Sun, 25 Aug 2024 23:25:24 +0530 Subject: [PATCH 1/2] ADDED orkflow Signed-off-by: subham-santra <32807547+Subham1999@users.noreply.github.com> --- .github/workflows/maven.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..ee4d457 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,33 @@ +# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# 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. + +name: Build TheAlgorithm + +on: + push: + branches: [ "new_main" ] + pull_request: + branches: [ "new_main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 331691b051bdd39a57bfe3ec2feab74c3f5ab66e Mon Sep 17 00:00:00 2001 From: subham-santra <32807547+Subham1999@users.noreply.github.com> Date: Tue, 27 Aug 2024 12:52:51 +0530 Subject: [PATCH 2/2] Update maven.yml Signed-off-by: subham-santra <32807547+Subham1999@users.noreply.github.com> --- .github/workflows/maven.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ee4d457..406ee13 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,7 +27,3 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml - - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6