Skip to content

Commit

Permalink
Update coverage nightly script to also generate the product mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-tingaud-sonarsource committed Dec 13, 2024
1 parent 4b0392e commit 6b91b3a
Show file tree
Hide file tree
Showing 2 changed files with 44,018 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
run: |
pipenv run rspec-tools update-coverage --rulesdir ../rules
mv ./covered_rules.json ../frontend/public/covered_rules.json
if git diff --exit-code ../frontend/public/covered_rules.json; then
mv ./rule_product_mapping.json ../frontend/public/rule_product_mapping.json
if git diff --exit-code ../frontend/public/covered_rules.json ../frontend/public/rule_product_mapping.json ; then
echo "new_coverage=false" >> "$GITHUB_OUTPUT"
else
echo "new_coverage=true" >> "$GITHUB_OUTPUT"
Expand All @@ -69,7 +70,7 @@ jobs:
git config --global user.name "SonarTech"
git config --global user.email "[email protected]"
git checkout -b $TMP_BRANCH
git add frontend/public/covered_rules.json
git add frontend/public/covered_rules.json frontend/public/rule_product_mapping.json
git commit -m "update coverage information"
git push --force-with-lease origin $TMP_BRANCH
Expand Down
Loading

0 comments on commit 6b91b3a

Please sign in to comment.