From 61249904c4a7e93eab42c3b566540e6e142a8d06 Mon Sep 17 00:00:00 2001 From: PraneethReddyGudibandi <112274089+PraneethReddyGudibandi@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:50:09 +0530 Subject: [PATCH 1/3] Create maven.yml --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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 00000000..c6bb0365 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# 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: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + 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 ccc3e37126607bc375d382da1f3e42126a8ebe84 Mon Sep 17 00:00:00 2001 From: PraneethReddyGudibandi <112274089+PraneethReddyGudibandi@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:55:12 +0530 Subject: [PATCH 2/3] Update maven.yml --- .github/workflows/maven.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c6bb0365..1673e90a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,8 +28,10 @@ jobs: 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 + run: mvn clean install + # Step 4: Unit Tests + - name: Run Unit Tests + run: mvn test + # Step 5: Functional Tests + - name: Run Functional Tests + run: mvn verify -DtestType=functional From 277457c23d2f70389061011cd3c06d2d0fa36c58 Mon Sep 17 00:00:00 2001 From: PraneethReddyGudibandi <112274089+PraneethReddyGudibandi@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:06:45 +0530 Subject: [PATCH 3/3] Update maven.yml --- .github/workflows/maven.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1673e90a..a02cfdf0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,3 +35,6 @@ jobs: # Step 5: Functional Tests - name: Run Functional Tests run: mvn verify -DtestType=functional + # Step 6: Performance Tests + - name: Run Performance Tests + run: mvn verify -DtestType=performance