Skip to content

Commit

Permalink
ci: make use of sonar-project-version (#543)
Browse files Browse the repository at this point in the history
* ci: make use of sonar-project-version
  • Loading branch information
FritzHoing authored May 3, 2024
1 parent b76e911 commit 0be24f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/on-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ jobs:
env:
CI: true

- name: Get shogun-admin version 🔖
run: |
echo "VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
- name: SonarQube Scan 🔬
uses: kitabisa/[email protected]
with:
host: ${{ secrets.SONARQUBE_HOST }}
login: ${{ secrets.SONARQUBE_TOKEN }}
projectVersion: ${{ env.VERSION }}
1 change: 0 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ sonar.projectBaseDir=/home/runner/work/shogun-admin/shogun-admin
sonar.testExecutionReportPaths=./coverage/jest-report.xml
sonar.tests=src
sonar.test.inclusions=**/*.spec.tsx,**/*.spec.ts
sonar.projectVersion=${package.json|json|version}

0 comments on commit 0be24f5

Please sign in to comment.