Diff command fails in GH actions but not in Travis #27196
-
I am trying to migrate the CI process from Travis to GH Actions, but one thing keeps bothering me. Here: https://github.com/WPTT/WPThemeReview/pull/261/checks?check_run_id=1542166027 The diff command I’m running is showing differences. The analogue build here: https://travis-ci.com/github/WPTT/WPThemeReview/jobs/450067838 is not (and is passing). I tried changing the OS from ubuntu-latest to ubuntu-16.04, thinking that maybe something changed in the If anybody can help me understand why it fails I’d be grateful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
That was the issue. Thanks! I added |
Beta Was this translation helpful? Give feedback.
diff
returns 1 if the checked files are different, and has been for a long time. So I think the thing to look at is why the files are different in the Actions build. At a glance the differences seem to be in indentation, maybe the defaults forxmllint
are different?