Skip to content

Commit 1639ad8

Browse files
committed
ci: add sonar cloud
1 parent 9686221 commit 1639ad8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
name: ci-node-workflow
22
on:
33
pull_request:
4+
types: [opened, synchronize, reopened]
45
branches:
56
- develop
67
jobs:
78
sonarcloud:
9+
name: SonarQube Cloud
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
15+
- name: SonarQube Cloud Scan
16+
uses: SonarSource/sonarcloud-github-action@master
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
19+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
820
runs-on: ubuntu-latest
921
steps:
1022
- name: Generate coverage

0 commit comments

Comments
 (0)