Files
figcraft/.github/workflows/sonarcloud.yml

25 lines
968 B
YAML

name: SonarCloud
# Runs only when started (`gh workflow run sonarcloud.yml --ref <branch>`).
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.ref == 'refs/heads/main' && format('sonarcloud-main-{0}', github.sha) || format('sonarcloud-{0}', 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:
# Pin the coverage setup that provisions test data and fetches locked dependencies before offline metadata tests.
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
with:
# The shared coverage archive's shards omit the CLI executable used by integration tests.
# Run this repository's suite in one instrumented job and provide its pinned test data.
shards: 1
fonts-ref: 37827adc41fd165f9a9234ac40f94dbad353aa69
secrets: inherit