chore: build test #389
Workflow file for this run
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 and Publish | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'feat/**' | |
- 'chore/**' | |
- 'fix/**' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
Build-Setup: | |
runs-on: ubuntu-latest | |
env: | |
ANYPOINT_CLIENT_ID: ${{ secrets.ANYPOINT_CLIENT_ID }} | |
ANYPOINT_CLIENT_SECRET: ${{ secrets.ANYPOINT_CLIENT_SECRET }} | |
ANYPOINT_CONNECTED_APP_ID: ${{ secrets.ANYPOINT_CONNECTED_APP_ID }} | |
ANYPOINT_CONNECTED_APP_SECRET: ${{ secrets.ANYPOINT_CONNECTED_APP_SECRET }} | |
ANYPOINT_USERNAME: ${{ secrets.ANYPOINT_USERNAME }} | |
ANYPOINT_PASSWORD: ${{ secrets.ANYPOINT_PASSWORD }} | |
outputs: | |
test-suite: ${{ steps.set-test-suite.outputs.GITHUB_TEST_SUITE }} | |
ANYPOINT_CLIENT_ID: ${{ env.ANYPOINT_CLIENT_ID }} | |
ANYPOINT_CLIENT_SECRET: ${{ env.ANYPOINT_CLIENT_SECRET }} | |
ANYPOINT_CONNECTED_APP_ID: ${{ env.ANYPOINT_CONNECTED_APP_ID }} | |
ANYPOINT_CONNECTED_APP_SECRET: ${{ env.ANYPOINT_CONNECTED_APP_SECRET }} | |
ANYPOINT_USERNAME: ${{ env.ANYPOINT_USERNAME }} | |
ANYPOINT_PASSWORD: ${{ env.ANYPOINT_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
submodules: 'recursive' | |
- name: Set test suite | |
id: set-test-suite | |
if: github.ref != 'refs/heads/main' && github.event_name != 'pull_request' | |
run: echo "GITHUB_TEST_SUITE=UnitTestSuite" >> $GITHUB_ENV | |
Build-Maven: | |
needs: Build-Setup | |
uses: avioconsulting/shared-workflows/.github/workflows/maven-build.yml@fix/upload-artifacts-path | |
secrets: inherit | |
with: | |
include-mule-ee-repo: true | |
maven-args: -Dtest=${{ needs.Build-Setup.outputs.test-suite }} -Danypoint.client.id=${{ needs.Build-Setup.outputs.ANYPOINT_CLIENT_ID }} -Danypoint.client.secret=${{needs.Build-Setup.outputs.ANYPOINT_CLIENT_SECRET}} -Danypoint.connected-app.id=${{needs.Build-Setup.outputs.ANYPOINT_CONNECTED_APP_ID}} -Danypoint.connected-app.secret=${{needs.Build-Setup.outputs.ANYPOINT_CONNECTED_APP_SECRET}} -Danypoint.username=${{needs.Build-Setup.outputs.ANYPOINT_USERNAME}} -Danypoint.password=${{needs.Build-Setup.outputs.ANYPOINT_PASSWORD}} | |
Release-Maven: | |
needs: Build-Maven | |
uses: avioconsulting/shared-workflows/.github/workflows/maven-release.yml@fix/upload-artifacts-path | |
secrets: inherit | |
with: | |
app-version: ${{ needs.Build-Maven.outputs.app-version }} | |
publish-maven-central: true | |
# java-distribution: adopt-hotspot | |
# java-version: 8 | |
# maven-args: -X | |
main-branch: chore/tmp-main | |
Post-Release-Maven: | |
needs: [Build-Maven, Release-Maven] | |
uses: avioconsulting/shared-workflows/.github/workflows/maven-post-release.yml@main | |
secrets: inherit | |
with: | |
app-version: ${{ needs.Build-Maven.outputs.app-version }} | |
# java-distribution: adopt-hotspot | |
# java-version: 8 | |
# maven-args: -X | |
# main-branch: main | |
# pr-reviewers: adesjardin, manikmagar, kkingavio |