From 4df59d88624d4b2ecf90e3896336f48763e62150 Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Sat, 30 Aug 2025 18:13:58 +0530 Subject: [PATCH] Refactor test steps to use run-tests workflow Replaces separate Maven unit and integration test steps with a call to the reusable run-tests.yml workflow, passing the current branch as input. This simplifies the workflow and centralizes test execution logic. --- .github/workflows/build-on-pull-request.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-on-pull-request.yml b/.github/workflows/build-on-pull-request.yml index dfa287d..662c687 100644 --- a/.github/workflows/build-on-pull-request.yml +++ b/.github/workflows/build-on-pull-request.yml @@ -32,11 +32,10 @@ jobs: - name: Build with Maven run: mvn --file pom.xml -U clean package - - name: Run unit tests - run: mvn --file pom.xml -U clean test -Punit-tests - - - name: Run integration tests - run: mvn --file pom.xml -U clean verify -Pintegration-tests + - name: Call run-tests.yml + uses: ./.github/workflows/run-tests.yml + with: + branch: ${{ github.head_ref || github.ref_name }} - name: Use Node.js uses: actions/setup-node@v3