Skip to content

Update build-logic/common digest to cbe54ef (#1117) #71

Update build-logic/common digest to cbe54ef (#1117)

Update build-logic/common digest to cbe54ef (#1117) #71

Workflow file for this run

name: Build
on:
push:
branches:
- master
- branch-*
workflow_dispatch:
schedule:
- cron: '30 17 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
permissions:
id-token: write
contents: write
jobs:
build:
runs-on: sonar-s-public
name: Build
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
with:
version: 2025.7.12
- name: Checkout build logic only
run: |
git submodule update --init --depth 1 -- build-logic/common
- name: Create Gradle User Home
shell: bash
run: |
export GRADLE_USER_HOME=${GITHUB_WORKSPACE}/.gradle
mkdir -p ${GRADLE_USER_HOME}
echo "GRADLE_USER_HOME=${GRADLE_USER_HOME}" >> $GITHUB_ENV
- name: Cache Gradle Dependencies
uses: SonarSource/ci-github-actions/cache@v1
with:
path: ${{ env.GRADLE_USER_HOME }}
key: gradle-${{ env.GRADLE_CACHE_KEY }}
- name: Build, test and analyze
id: build
uses: SonarSource/ci-github-actions/build-gradle@v1
with:
public: true
deploy-pull-request: false
skip-tests: false
use-develocity: true
gradle-args: "--build-cache -x artifactoryPublish -Dsonar.projectName=SonarText"
disable-caching: true
shadow-scan: ${{ github.event_name == 'schedule' }}