Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ci: always check that git is clean when we finish
That is, check that git is clean even if a previous step failed. In https://cuelang.org/cl/1194425 this caused some confusion; the author forgot to run `go generate ./...`, and since CI runs that command as a step before `go test ./...` on the main Linux job, CI seemed to run into a "go test" failure that the author did not. This human error would have been more obvious if CI had also failed with "git is not clean" including a diff of the generated code. By default, a GitHub Actions step only runs if all previous steps have succeeded, but we can use the "always" condition to also run even if the job already failed due to a previous step. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ied1c1eb98d53b23f68650d946cc6341d8c2f3c3d Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196088 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Noam Dolovich <[email protected]> Reviewed-by: Paul Jolly <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information