File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- name : Pylint plugin test
1+ name : plugin it- test
22
33permissions :
44 contents : write
3737 # Convert absolute paths to relative paths in the output
3838 sed -i 's|file:///home/runner/work/codacy-cli-v2/codacy-cli-v2/|file:///|g' actual.sarif
3939 # Compare with expected output
40- jq --sort-keys . expected.sarif > expected.sorted.json
41- jq --sort-keys . actual.sarif > actual.sorted.json
40+ jq --sort-keys '.runs[0].tool.driver.rules |= sort_by(.id)' expected.sarif > expected.sorted.json
41+ jq --sort-keys '.runs[0].tool.driver.rules |= sort_by(.id)' actual.sarif > actual.sorted.json
4242 diff expected.sorted.json actual.sorted.json
4343
4444 - name : Run Semgrep plugin tests
5454 # Convert absolute paths to relative paths in the output
5555 sed -i 's|file:///home/runner/work/codacy-cli-v2/codacy-cli-v2/|file:///|g' actual.sarif
5656 # Compare with expected output
57- jq --sort-keys . expected.sarif > expected.sorted.json
58- jq --sort-keys . actual.sarif > actual.sorted.json
57+ jq --sort-keys '.runs[0].tool.driver.rules |= sort_by(.id)' expected.sarif > expected.sorted.json
58+ jq --sort-keys '.runs[0].tool.driver.rules |= sort_by(.id)' actual.sarif > actual.sorted.json
5959 diff expected.sorted.json actual.sorted.json
You can’t perform that action at this time.
0 commit comments