Files
act_runner/pkg/schema/gitea_schema_test.go
2025-10-06 13:53:15 +02:00

20 lines
375 B
Go

package schema
import (
"encoding/json"
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGiteaSchemaFactory(t *testing.T) {
schema := GetGiteaWorkflowSchema()
_ = schema
data, err := json.MarshalIndent(schema, "", " ")
assert.NoError(t, err)
err = os.WriteFile("gitea_workflow_schema.json", append(data, "\n"...), 0o600)
assert.NoError(t, err)
}