Skip to content

Commit fbc7992

Browse files
brabojclaude
andcommitted
fix: add npm install for SonarCloud TypeScript analysis
SonarCloud needs node_modules to resolve tsconfig references. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d6d6e92 commit fbc7992

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "22.12.0"
24+
cache: npm
25+
cache-dependency-path: astro-site/package-lock.json
26+
27+
- name: Install dependencies
28+
working-directory: astro-site
29+
run: npm ci
30+
2031
- name: SonarCloud Scan
2132
uses: SonarSource/sonarqube-scan-action@v6
2233
env:

0 commit comments

Comments
 (0)