Fix: Discharge Duplicate Encounters groups by physical room, not assignment ID #5859
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Validator | |
| on: | |
| pull_request: | |
| types: [ opened, synchronize, reopened ] | |
| branches: | |
| - hims-qa3 | |
| - 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' | |
| cache: 'maven' | |
| - name: Configure Maven settings | |
| run: | | |
| mkdir -p ~/.m2 | |
| cat > ~/.m2/settings.xml << 'EOF' | |
| <settings> | |
| <mirrors> | |
| <mirror> | |
| <id>maven-central-secure</id> | |
| <mirrorOf>central</mirrorOf> | |
| <url>https://repo1.maven.org/maven2/</url> | |
| </mirror> | |
| </mirrors> | |
| </settings> | |
| EOF | |
| - name: Compile with Maven (with retry) | |
| uses: nick-fields/retry@v3 | |
| with: | |
| timeout_minutes: 15 | |
| max_attempts: 3 | |
| retry_wait_seconds: 30 | |
| command: mvn clean compile -B -U |