Skip to content

Commit d512221

Browse files
committed
add sonarcloud stuff
1 parent 97bf27e commit d512221

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
sonarqube:
10+
name: SonarQube
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Install dependencies
17+
run: yarn
18+
- name: Test and coverage
19+
run: yarn jest --coverage
20+
- name: SonarQube Scan
21+
uses: SonarSource/sonarqube-scan-action@v4
22+
env:
23+
SONAR_TOKEN: ${{ secrets. SONARCLOUD_TOKEN }}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sonarlint.connectedMode.project": {
3+
"connectionId": "jodainteractive",
4+
"projectKey": "JodaInteractive_markdown-parser"
5+
}
6+
}

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

0 commit comments

Comments
 (0)