Skip to content

Commit

Permalink
add-sonar-ci-main: add sonar files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Oct 10, 2023
1 parent fcef0d4 commit 4b7322d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sonar CI pipeline
on:
push:
branches:
- main
- 'release/**'
- develop
- 'feature/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 6 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonar.projectKey=openimis_openimis-fe-claim_batch_js
sonar.organization=openimis-1
sonar.projectName=openimis-fe-claim_batch_js

sonar.sources=src
sonar.sourceEncoding=UTF-8

0 comments on commit 4b7322d

Please sign in to comment.