Update build-on-pull-request.yml

This commit is contained in:
amithkoujalgi 2025-08-30 21:10:54 +05:30
parent 2070753c5e
commit 52d7dbd7ce
No known key found for this signature in database
GPG Key ID: E29A37746AF94B70

View File

@ -14,8 +14,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
run-tests: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
@ -33,11 +32,18 @@ jobs:
- name: Build with Maven - name: Build with Maven
run: mvn --file pom.xml -U clean package run: mvn --file pom.xml -U clean package
- name: Call run-tests.yml run-tests:
needs: build
uses: ./.github/workflows/run-tests.yml uses: ./.github/workflows/run-tests.yml
with: with:
branch: ${{ github.head_ref || github.ref_name }} branch: ${{ github.head_ref || github.ref_name }}
build-docs:
needs: [build, run-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with: