Files
craft-wiki/.github/workflows/sonarcloud.yml
Dylan M. Taylor d437cd4110 ci: SonarCloud analysis from CI, like the other craft repos (#37)
* ci: SonarCloud analysis from CI instead of automatic analysis

* Publish the worker's node:test coverage to SonarCloud (test:coverage)

* ci: shared SonarCloud workflow back on @main (node coverage merged in craft-common-actions#194)
2026-11-10 22:31:36 -05:00

24 lines
603 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
with:
node-coverage-script: test:coverage
secrets: inherit