Skip to content

Commit

Permalink
Merge pull request #25 from Typeform/TU-13732--Measure-Unit-Test-Cove…
Browse files Browse the repository at this point in the history
…rage

[TU-13732] Add SonarCloud confuguration
  • Loading branch information
Thr44 authored Sep 25, 2024
2 parents db09342 + 864e330 commit 8e89745
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
sonarcloud:
name: Test and Code Quality Report (SonarCloud)
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }}
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.projectKey=Typeform_results-example
sonar.organization=typeform

sonar.inclusions=packages/*/src/**/*.ts,src/**/*.js
sonar.exclusions=node_modules/**,dist/**,**/*.spec.ts,**/*.test.ts

sonar.test.exclusions=node_modules/**,dist/**

0 comments on commit 8e89745

Please sign in to comment.