552dbcdda9
Add copyright header Co-authored-by: sillyguodong <gedong_1994@163.com> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/29 Reviewed-by: Jason Song <i@wolfogre.com> Reviewed-by: Zettat123 <zettat123@noreply.gitea.io> Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io> Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io>
13 lines
338 B
Go
13 lines
338 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package cmd
|
|
|
|
import "testing"
|
|
|
|
func TestValidateLabels(t *testing.T) {
|
|
labels := []string{"ubuntu-latest:docker://node:16-buster", "self-hosted"}
|
|
if err := validateLabels(labels); err != nil {
|
|
t.Errorf("validateLabels() error = %v", err)
|
|
}
|
|
}
|