From b7a75efa28f0146befdd5a9a2dc563ea09ef8506 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 11 Oct 2023 08:52:32 +0200 Subject: [PATCH] add-sonar-ci: add sonar files (#29) Co-authored-by: Jan --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ sonar-project.properties | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 sonar-project.properties diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..da93b2d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..58c9dc7 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=openimis_openimis-fe-individual_js +sonar.organization=openimis-1 +sonar.projectName=openimis-fe-individual_js + +sonar.sources=src +sonar.sourceEncoding=UTF-8