mirror of
https://gitea.com/gitea/act_runner.git
synced 2025-06-17 03:57:13 +02:00
feat(register): add label format validation
This commit is contained in:
10
cmd/register_test.go
Normal file
10
cmd/register_test.go
Normal file
@ -0,0 +1,10 @@
|
||||
package cmd
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestValidateLabels(t *testing.T) {
|
||||
labels := []string{"ubuntu-latest:docker://node:16-buster"}
|
||||
if err := validateLabels(labels); err != nil {
|
||||
t.Errorf("validateLabels() error = %v", err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user