Skip to content

Commit bdebf08

Browse files
Add sonarcloud (#172)
* Add sonaclour * Update sonar-analysis.yml * Update sonar-analysis.yml * Split in build:addon * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Update sonar-analysis.yml * Check release node-win * Update publish-npm.yml * Try sonarcloud * Update pull-request.yml * Update .gitignore * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Delete addon.node * Update pull-request.yml * Change version * Update pull-request.yml * Commit * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Update pull-request.yml * Commit * Delete pull-request.yml * Revert "Delete addon.node" This reverts commit 3b69cb5. * Update sonar-analysis.yml * Fix hotspots * Update addon.node
1 parent 2c3c6b1 commit bdebf08

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Pull request checks
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
sonar_analysis:
12+
runs-on: windows-latest
13+
timeout-minutes: 15
14+
15+
env:
16+
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
29+
- name: Install Windows SDK 10.0.22621.0
30+
uses: ChristopheLav/windows-sdk-install@88d72875fb873886ea398ed04041446da6f26f86 # v1.0.3
31+
with:
32+
version-sdk: 22621
33+
features: "OptionId.DesktopCPPx86,OptionId.DesktopCPPx64"
34+
35+
- name: Install node-gyp
36+
run: npm install -g node-gyp
37+
38+
- name: Install build wrapper
39+
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5.3.1
40+
41+
- name: Run build wrapper
42+
run: build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmd /c "node-gyp configure build"
43+
44+
- name: SonarQube Scan
45+
uses: SonarSource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5.3.1
46+
env:
47+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
48+
with:
49+
args: >
50+
--define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json

dist/addon.node

0 Bytes
Binary file not shown.

sonar-project.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sonar.projectKey=internxt_node-win
2+
sonar.organization=internxt

0 commit comments

Comments
 (0)