Skip to content

Commit e959c39

Browse files
committed
update github actions
1 parent 32e82ae commit e959c39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches: [ master ]
55
pull_request:
66
branches: [ master ]
7+
types: [opened, synchronize, reopened]
78
jobs:
89
build:
910
runs-on: Ubuntu-latest
@@ -25,3 +26,15 @@ jobs:
2526
run: npm test
2627
- name: Before deploy
2728
run: npm run docs
29+
sonarcloud:
30+
name: SonarCloud
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
36+
- name: SonarCloud Scan
37+
uses: SonarSource/sonarcloud-github-action@master
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
40+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)