feat: use new FullSteps

This commit is contained in:
Jason Song
2022-11-14 16:05:55 +08:00
parent aa09eb63e1
commit a1ddfb8200
6 changed files with 223 additions and 54 deletions

View File

@ -25,7 +25,12 @@ func (s Status) String() string {
// IsDone returns whether the Status is final
func (s Status) IsDone() bool {
return s > StatusUnknown && s <= StatusSkipped
return s.In(StatusSuccess, StatusFailure, StatusCancelled, StatusSkipped)
}
// HasRun returns whether the Status is a result of running
func (s Status) HasRun() bool {
return s.In(StatusSuccess, StatusFailure)
}
func (s Status) IsSuccess() bool {