Skip to content

OPE-858 migrate from cirrus to github #1

OPE-858 migrate from cirrus to github

OPE-858 migrate from cirrus to github #1

Workflow file for this run

name: Build
on:
push:
branches:
- master
- branch-*
pull_request:
merge_group:
workflow_dispatch:
jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
runs-on: sonar-xs
name: Build
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: jdx/mise-action@bfb9fa0b029db830a8c570757cee683df207a6c5 # v2.4.0
with:
version: 2025.7.12
- uses: SonarSource/ci-github-actions/get-build-number@v1
- uses: SonarSource/ci-github-actions/build-maven@v1
with:
deploy-pull-request: true
# Pass Develocity token as extra-maven-args if needed by your build
env:
DEVELOCITY_TOKEN: ${{ secrets.DEVELOCITY_TOKEN }}
- name: Check license compliance
run: ./check-license-compliance.sh
promote:
needs: [build]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
runs-on: sonar-xs
name: Promote
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: jdx/mise-action@bfb9fa0b029db830a8c570757cee683df207a6c5 # v2.4.0
with:
cache_save: false
version: 2025.7.12
- uses: SonarSource/ci-github-actions/get-build-number@v1
- uses: SonarSource/ci-github-actions/promote@v1
with:
promote-pull-request: true