Skip to content

Commit

Permalink
💚 ci: generate sonar properties dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnsn committed Oct 12, 2024
1 parent 2839b10 commit 0e71955
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Generate sonar properties
run: |
cat << EOF > sonar-project.properties
sonar.projectKey=ljnsn_coinapi-rest
sonar.organization=ljnsn
sonar.python.version=">=3.10"
sonar.python.coverage.reportPaths=reports/coverage.xml
sonar.sources=src/
sonar.tests=tests/
sonar.projectVersion="$(git describe --tags HEAD)"
EOF
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
13 changes: 0 additions & 13 deletions sonar-project.properties

This file was deleted.

0 comments on commit 0e71955

Please sign in to comment.