Skip to content

Commit 40b7874

Browse files
committed
chore: sonarcloud ci for multiple long-lived branches
1 parent 03312a0 commit 40b7874

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/sonarcloud.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- dev
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
sonarcloud:
12+
name: SonarCloud
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18+
19+
- name: SonarCloud Scan
20+
uses: SonarSource/sonarcloud-github-action@master
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
23+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.organization=kleros
2+
sonar.projectKey=kleros_kleros-v2
3+
sonar.projectName=kleros-v2

0 commit comments

Comments
 (0)