File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : SonarCloud
2+
3+ on :
4+ pull_request :
5+ push :
6+ tags :
7+ - " *"
8+
9+ jobs :
10+ sonarcloud :
11+ name : SonarCloud Analysis
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
16+ with :
17+ fetch-depth : 0
18+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
19+
20+ - name : Setup pnpm
21+ uses : pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
22+ with :
23+ version : 10.29.2
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
27+ with :
28+ node-version : 24
29+ cache : pnpm
30+
31+ - name : Install dependencies
32+ run : pnpm install
33+
34+ - name : Build tokens
35+ run : pnpm build:tokens
36+
37+ - name : SonarCloud Scan
38+ uses : SonarSource/sonarqube-scan-action@8c71dc039c2dd71d3821e89a2b58ecc7fee6ced9
39+ env :
40+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
41+ SONAR_PULL_REQUEST_BASE : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || '' }}
42+ SONAR_PULL_REQUEST_BRANCH : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
43+ SONAR_PULL_REQUEST_KEY : ${{ github.event_name == 'pull_request' && github.event.pull_request.number || '' }}
You can’t perform that action at this time.
0 commit comments