-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (41 loc) · 1.52 KB
/
pull-request.yml
File metadata and controls
53 lines (41 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Pull request checks
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
pull_request:
runs-on: windows-latest
timeout-minutes: 20
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: ChristopheLav/windows-sdk-install@v1
with:
version-sdk: 22621
features: "OptionId.DesktopCPPx86,OptionId.DesktopCPPx64"
- run: dir "C:\Program Files (x86)\Windows Kits\10\Lib"
- name: Install node-gyp
run: npm install -g node-gyp
- name: Install build wrapper
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v5
- name: Run build wrapper
run: build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmd /c "node-gyp configure build"
- run: ls ${{ env.BUILD_WRAPPER_OUT_DIR }}
- run: cat ${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json
- run: cat ${{ env.BUILD_WRAPPER_OUT_DIR }}/build-wrapper.log
- run: cat ${{ env.BUILD_WRAPPER_OUT_DIR }}/build-wrapper-dump.json
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
--define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json