diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5e68910 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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' + diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..6718f74 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "sonarsource.sonarlint-vscode" + ] +} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..508e6f6 --- /dev/null +++ b/sonar-project.properties @@ -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 diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/.gitkeep b/tests/.gitkeep new file mode 100644 index 0000000..e69de29