MCP-86 Migrate to GitHub Actions #18
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: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - branch-* | |
| - dogfood-* | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| # Workflow-level concurrency | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} | |
| # Required permissions for Vault OIDC and repo operations | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: github-ubuntu-latest-s # Public repository runner | |
| name: Build | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4 | |
| with: | |
| version: 2025.7.12 | |
| - uses: SonarSource/ci-github-actions/build-gradle@v1 | |
| with: | |
| deploy-pull-request: true | |
| # Public repo + Cirrus used private-reader & qa-deployer → override roles | |
| artifactory-reader-role: private-reader | |
| artifactory-deployer-role: qa-deployer | |
| # Cirrus used SonarCloud EU → set platform accordingly | |
| sonar-platform: sqc-eu | |
| # Additional Gradle tasks seen in Cirrus | |
| gradle-args: ":cyclonedxBom jacocoTestReport" | |
| promote: | |
| needs: [build] | |
| runs-on: github-ubuntu-latest-s # Public repository runner | |
| name: Promote | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4 | |
| with: | |
| cache_save: false | |
| version: 2025.7.12 | |
| - uses: SonarSource/ci-github-actions/promote@v1 | |
| with: | |
| promote-pull-request: true |