Skip to content

Commit

Permalink
✨ update
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Oct 20, 2023
1 parent 722a6b3 commit b1d5845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
actual_file=./output/output.yaml
function filter_and_sort() {
yq e 'del(.[].skipped) | del(.[].unmatched)' $1 > /tmp/filtered
yq e '(.[] | select(.violations != null) | .violations |= (. | to_entries | sort_by(.key) | from_entries))' /tmp/filtered > $1
yq e '.[]?.violations |= (. | to_entries | sort_by(.key) | from_entries)' /tmp/filtered > /tmp/sorted
yq e '.[]?.violations[]?.incidents |= sort_by(.uri)' /tmp/sorted > $1
}
filter_and_sort $expected_file
filter_and_sort $actual_file
Expand Down

0 comments on commit b1d5845

Please sign in to comment.