Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
- release**
pull_request:
types: [opened, synchronize, reopened]
name: SonarCloud
workflow_dispatch:

name: SonarCloud analysis
jobs:
sonarcloud:
name: SonarCloud
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Sofie-Automation' && !github.event.pull_request.head.repo.fork }}
timeout-minutes: 15
Expand Down Expand Up @@ -38,14 +40,13 @@ jobs:
- name: Prepare Environment
run: |
corepack enable


yarn config set cacheFolder /home/runner/lint-core-cache
yarn
yarn build:packages
env:
CI: true

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@main
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 3 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=nrkno_sofie-core
sonar.organization=nrkno
sonar.projectKey=Sofie-Automation_sofie-core
sonar.organization=sofie-automation

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=sofie-core
Expand Down Expand Up @@ -37,4 +37,4 @@ sonar.issue.ignore.multicriteria.switchstatement3cases.resourceKey=**/*

# Prefer using an optional chain expression instead, as it's more concise and easier to read
sonar.issue.ignore.multicriteria.preferoptionalchain.ruleKey=typescript:S6582
sonar.issue.ignore.multicriteria.preferoptionalchain.resourceKey=**/*
sonar.issue.ignore.multicriteria.preferoptionalchain.resourceKey=**/*
Loading