diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ac6bccd57d..65a21f8679 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -17,7 +17,7 @@ on: jobs: unit-tests: runs-on: ubuntu-latest - name: Type-checks, eslint, unit tests and SonarCloud + name: Type-checks, eslint, unit tests steps: - name: checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -58,15 +58,3 @@ jobs: - name: run tests working-directory: app-frontend run: yarn test --coverage - - - name: SonarCloud Scan - if: | - github.repository_owner == 'Altinn' && - (github.event_name != 'pull_request' && github.event.repository.fork == false) || - (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) - with: - projectBaseDir: app-frontend - uses: SonarSource/sonarqube-scan-action@c7ee0f9df90b7aa20e8dcf9695dcfe2e7da5b4f2 # v7.2.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index e351c1d217..0000000000 --- a/sonar-project.properties +++ /dev/null @@ -1,10 +0,0 @@ -sonar.projectKey=Altinn_app-frontend-react -sonar.organization=altinn - -sonar.sources=src/ -sonar.exclusions=src/**/*.test.ts,src/**/*.test.tsx,src/test/*,src/__mocks__/*,src/language/texts/**,src/layout/**/config.ts - -sonar.tests=src/,test/ -sonar.test.inclusions=src/**/*.test.tsx,src/**/*.test.ts - -sonar.javascript.lcov.reportPaths=coverage/lcov.info