Files
Dylan M. Taylor 1f969a9224 ci(sonar): stop cancelling main-branch runs so coverage is published (#2574)
SonarCloud coverage upload began on 2026-10-23
(craft-common-actions#74), but `cancel-in-progress: true` cancels
superseded runs on `main` before the llvm-cov build finishes, so
coverage may never be published. Cancel superseded runs only on PR refs;
main runs queue and complete. Same change as storytold/vectorcraft#3881.
2026-10-23 17:01:44 -04:00

22 lines
551 B
YAML

name: SonarCloud
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
concurrency:
group: sonarcloud-${{ github.ref }}
# A push to main is the run that publishes coverage; superseded runs there would never finish.
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
sonarcloud:
# Tracked at @main so org-wide CI improvements propagate without PR churn.
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
secrets: inherit