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.
This commit is contained in:
amithkoujalgi 2025-08-30 18:13:58 +05:30
parent 621004e6d8
commit 4df59d8862
No known key found for this signature in database
GPG Key ID: E29A37746AF94B70

View File

@ -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