mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-19 05:51:01 +01:00
* 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)
24 lines
603 B
YAML
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
|