mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-26 19:19:38 +00:00
1f969a9224
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.
22 lines
551 B
YAML
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
|