Build Workflow -- main #177
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: Build Workflow | |
run-name: 'Build Workflow -- ${{ github.head_ref || github.ref_name }}' | |
# Pipeline/Workflow Triggers for TEST case | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
BRANCH_NAME: ${{github.ref_name}} | |
IS_TAG: ${{ github.ref_type == 'tag'}} | |
jobs: | |
build-job: | |
name: Build Job | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
# settings.xml credentials for Nexus | |
# - name: maven settings | |
# uses: s4u/maven-settings-action@v3.1.0 | |
# with: | |
# servers: '[{"id": "nexus-repo", "username": "${{ secrets.NEXUS_USER_DEMO }}", "password": "${{secrets.NEXUS_PASSWORD_DEMO}}" }]' | |
# - name: Build IKMDEV Code | |
# uses: ikmdev/maven-clean-install-build-action@main | |
# with: | |
# branch_name: ${{env.BRANCH_NAME}} | |
# sonarcloud_token: ${{ secrets.SONAR_TOKEN }} | |
# sonarcloud_host_url: ${{ 'https://sonarcloud.io/' }} | |
# sonarcloud_organization: ${{ github.repository_owner }} | |
# sonarcloud_sources: ${{ 'src/main/java' }} | |
# sonarcloud_projectKey: ${{ github.repository_owner }}_${{ github.event.repository.name }} | |
# sonarcloud_coverage_jacoco_xmlReportPaths: ${{ 'target/site/jacoco/jacoco.xml' }} | |
# sonarcloud_java_binaries: ${{ 'target/classes' }} | |
# sonarcloud_tests: ${{ 'src/test/java' }} | |