Skip to content

Craft Anything: understand how any software works, and craft your own.

Rust

ci: add SonarCloud analysis

Dylan M. Taylor078cf0c4842c
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
new file mode 100644
index 00000000..8ab024cf
--- /dev/null
+++ b/.github/workflows/sonarcloud.yml
@@ -0,0 +1,19 @@
+name: SonarCloud
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ types: [opened, synchronize, reopened]
+
+permissions:
+ contents: read
+
+concurrency:
+ group: sonarcloud-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
+jobs:
+ sonarcloud:
+ uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
+ secrets: inherit