Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarcloud #597

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: CI

on:
push:
pull_request:
branches: [main]
pull_request:

jobs:
lint:
Expand Down Expand Up @@ -37,3 +37,22 @@ jobs:
- uses: ./.github/actions/setup
- name: Build Docs
run: pnpm run build

sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Run SonarCloud scanner'
if: ${{contains(github.ref, '/pull/')}}
uses: SonarSource/sonarcloud-github-action@v2.2.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Token needs to be accessible or replaced with an accessible one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minvws/irealisatie-operations kunnen jullie daar naar kijken

- name: 'Run SonarCloud scanner'
if: ${{!contains(github.ref, '/pull/')}}
uses: SonarSource/sonarcloud-github-action@v2.2.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: -Dsonar.branch.name=${{ github.ref_name }}
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Project info
sonar.organization=vws
sonar.projectKey=nl-rdo-manon
sonar.projectName=nl-rdo-manon

# Info links shown in SonarCloud
sonar.links.homepage=https://github.com/minvws/nl-rdo-manon

# Source encoding
sonar.sourceEncoding=UTF-8

# Analysis scoping
sonar.sources=docs,examples,manon,themes