Skip to content

Commit 8e89745

Browse files
authored
Merge pull request #25 from Typeform/TU-13732--Measure-Unit-Test-Coverage
[TU-13732] Add SonarCloud confuguration
2 parents db09342 + 864e330 commit 8e89745

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
sonarcloud:
10+
name: Test and Code Quality Report (SonarCloud)
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out Git repository
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: SonarCloud Scan
19+
uses: SonarSource/sonarcloud-github-action@v2
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
22+
SONAR_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }}

sonar-project.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sonar.projectKey=Typeform_results-example
2+
sonar.organization=typeform
3+
4+
sonar.inclusions=packages/*/src/**/*.ts,src/**/*.js
5+
sonar.exclusions=node_modules/**,dist/**,**/*.spec.ts,**/*.test.ts
6+
7+
sonar.test.exclusions=node_modules/**,dist/**

0 commit comments

Comments
 (0)