C2C-269: Add step to validate C2C OpenMRS config on PRs and pushes #53
This file contains 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: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
release: | |
types: [published] | |
jobs: | |
build: | |
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 }} | |
publish: | |
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }} | |
needs: build | |
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main | |
secrets: | |
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} |