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
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
workflow_dispatch:
push:
branches: [main]
tags: [v*]
pull_request:
types: [opened, synchronize, reopened]

jobs:
ci:
name: Checkout, SonarQube scan
runs-on: ubuntu-24.04

steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Run SonarQube scan
uses: minvws/action-sonarqube@v1
with:
sonar-token: ${{ secrets.SONAR_TOKEN }}
allow-run-on-dependabot: 'true'

5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"sonarsource.sonarlint-vscode"
]
}
18 changes: 18 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Project info
sonar.organization=vws
sonar.projectKey=minvws_nl-mgo-metric-service
sonar.projectName=nl-mgo-metric-service

# Info links shown in SonarCloud
sonar.links.homepage=https://github.com/minvws/nl-mgo-metric-service

# Encoding and language specific properties
sonar.sourceEncoding=UTF-8
sonar.python.version=3.11

# Analysis scoping
sonar.sources=src
sonar.tests=tests

# Code coverage
sonar.python.coverage.reportPaths=coverage.xml
Empty file added src/.gitkeep
Empty file.
Empty file added tests/.gitkeep
Empty file.
Loading