Skip to content

Commit

Permalink
read version from package.json and pass into sonar analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jul 10, 2023
1 parent 221ba7c commit 8cb05eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Read version from package.json
id: package_json
uses: zoexx/github-action-json-file-properties@1.0.4
with:
file_path: package.json

- uses: actions/setup-node@v3
with:
node-version: 18
Expand All @@ -36,3 +42,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ env.SONARCLOUD_TOKEN }}
with:
args: -Dsonar.projectVersion=${{steps.package_json.outputs.version}}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Joan of Arc: Orléans Solo Helper

[![Build](https://github.com/brdgm/joan-of-arc-orleans-solo-helper/workflows/Build/badge.svg?branch=develop)](https://github.com/brdgm/joan-of-arc-orleans-solo-helper/actions?query=workflow%3ABuild+branch%3Adevelop)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=brdgm_joan-of-arc-orleans-solo-helper&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=brdgm_joan-of-arc-orleans-solo-helper)


Expand Down

0 comments on commit 8cb05eb

Please sign in to comment.