From ad191dd51b508e4e5910be959ca19cba56435094 Mon Sep 17 00:00:00 2001 From: kdaud Date: Wed, 20 Nov 2024 12:19:16 +0300 Subject: [PATCH] C2C-269: Add step to validate C2C OpenMRS config on PRs and pushes --- .github/workflows/ci.yml | 1 + .../visittypes/data_migration_visit_types.csv | 3 +- pom.xml | 56 +++++++++++++++++++ 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 912bf64..dd27555 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main with: java-version: "8" + maven-args: "-P validator" # OMRS config validation secrets: NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} diff --git a/configs/openmrs/initializer/visittypes/data_migration_visit_types.csv b/configs/openmrs/initializer/visittypes/data_migration_visit_types.csv index 21fad62..0ea8af7 100644 --- a/configs/openmrs/initializer/visittypes/data_migration_visit_types.csv +++ b/configs/openmrs/initializer/visittypes/data_migration_visit_types.csv @@ -1,3 +1,2 @@ Uuid,Void/Retire,Name,Description,_version:1 -e4f9bb8e-8ac5-405f-9baf-21dc8de28a73,,N/A,"Visit type used to be assigned to legacy visits, imported from the historical database", -e4f9bb8e-8ac5-405f-9baf-21dc8de28a73,True,,, \ No newline at end of file +e4f9bb8e-8ac5-405f-9baf-21dc8de28a73,,N/A,"Visit type used to be assigned to legacy visits, imported from the historical database", \ No newline at end of file diff --git a/pom.xml b/pom.xml index c0ad047..cd5065f 100644 --- a/pom.xml +++ b/pom.xml @@ -78,6 +78,62 @@ + + + validator + + + + + maven-antrun-plugin + + + Copy OpenMRS Initializer configs for validation + pre-integration-test + + + + + + + + + + + + + + + run + + + + + + + org.openmrs.maven.plugins + openmrs-packager-maven-plugin + 1.7.0 + + + Validate OpenMRS Initializer configs + integration-test + + validate-configurations + + + + ${project.build.directory}/validator/configuration + + + + + + + + + mks-nexus-public