Skip to content

SLH hotfix: lab income report Collecting Centre column + persistence config #8184

SLH hotfix: lab income report Collecting Centre column + persistence config

SLH hotfix: lab income report Collecting Centre column + persistence config #8184

name: PR Validator
on:
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- development
- '*-prod'
jobs:
validate-jdbc-data-sources:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Verify JDBC Data Sources in persistence.xml
run: |
grep -q '<jta-data-source>${JDBC_DATASOURCE}</jta-data-source>' src/main/resources/META-INF/persistence.xml
grep -q '<jta-data-source>${JDBC_AUDIT_DATASOURCE}</jta-data-source>' src/main/resources/META-INF/persistence.xml
- name: Validate grantAllPrivilegesToAllUsersForTesting
run: |
if grep -q "grantAllPrivilegesToAllUsersForTesting = true" src/main/java/com/divudi/bean/common/WebUserController.java; then
echo "Error: grantAllPrivilegesToAllUsersForTesting is set to true. This is not allowed."
exit 1
fi
validate-compilation:
needs: validate-jdbc-data-sources
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Compile with Maven
run: mvn clean compile