Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,29 @@
uses: actions/upload-artifact@v4
with:
name: backend-coverage-report
path: coverage/
path: coverage/

sonar:
name: SonarCloud Scan
runs-on: ubuntu-latest
needs: test

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js 20.17.0
uses: actions/setup-node@v4
with:
node-version: 20.17.0
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v4

Check failure on line 104 in .github/workflows/node.js.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=OneCommunityGlobal_HGNRest&issues=AZ9w72ILcUMiqJpTOJ7s&open=AZ9w72ILcUMiqJpTOJ7s&pullRequest=2273
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.projectKey=OneCommunityGlobal_HGNRest
sonar.organization=onecommunityglobal

sonar.sources=src
sonar.exclusions=**/node_modules/**,**/coverage/**,**/dist/**,**/build/**,**/*.test.js,**/*.spec.js,**/test/**,**/__tests__/**

sonar.javascript.lcov.reportPaths=coverage/lcov.info
Loading