|
37 | 37 |
|
38 | 38 | - name: npm Build |
39 | 39 | run: npm run build |
40 | | - |
41 | | - - name: SonarQube Scan (Push) |
42 | | - if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/main') }} |
43 | | - uses: SonarSource/sonarcloud-github-action@v1.8 |
44 | | - env: |
45 | | - SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} |
46 | | - with: |
47 | | - projectBaseDir: . |
48 | | - args: > |
49 | | - -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} |
50 | | - -Dsonar.projectName=${{ github.event.repository.name }} |
51 | | - -Dsonar.projectKey=${{ github.event.repository.name }} |
52 | | - -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info |
53 | | - -Dsonar.exclusions=**/*.java |
54 | | - -Dsonar.c.file.suffixes=- |
55 | | - -Dsonar.cpp.file.suffixes=- |
56 | | - -Dsonar.objc.file.suffixes=- |
57 | | - -Dsonar.links.ci="https://github.com/splitio/${{ github.event.repository.name }}/actions" |
58 | | - -Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}" |
59 | | -
|
60 | | - - name: SonarQube Scan (Pull Request) |
61 | | - if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' |
62 | | - uses: SonarSource/sonarcloud-github-action@v1.8 |
63 | | - env: |
64 | | - SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} |
65 | | - with: |
66 | | - projectBaseDir: . |
67 | | - args: > |
68 | | - -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} |
69 | | - -Dsonar.projectName=${{ github.event.repository.name }} |
70 | | - -Dsonar.projectKey=${{ github.event.repository.name }} |
71 | | - -Dsonar.links.ci="https://github.com/splitio/${{ github.event.repository.name }}/actions" |
72 | | - -Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}" |
73 | | - -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info |
74 | | - -Dsonar.exclusions=**/*.java |
75 | | - -Dsonar.c.file.suffixes=- |
76 | | - -Dsonar.cpp.file.suffixes=- |
77 | | - -Dsonar.objc.file.suffixes=- |
78 | | - -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} |
79 | | - -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} |
80 | | - -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} |
0 commit comments