-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update coverage nightly script to also generate the product mapping
- Loading branch information
1 parent
4b0392e
commit 6b91b3a
Showing
2 changed files
with
44,018 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 | ||
|
Oops, something went wrong.