Skip to content

SVGO: Avoid creating file diffs in CI

Warren Gifford requested to merge tr/svgo-ci-improve into main

Created by: umpox

Follow up on https://github.com/sourcegraph/sourcegraph/pull/27126

There was an issue where, for a brief moment, the SVG files would be regenerated in CI and would affect other commands running git diff even if there were no SVG improvements.

Unfortunately there's no dry-run option in svgo, but we can just output to STDOUT instead of a file, and use diff to compare.

Tested the command 50 times to make sure there wasn't any flakiness and had no failures

Merge request reports

Loading