mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-20 20:06:16 +08:00
20 lines
378 B
Go
20 lines
378 B
Go
package schema
|
|
|
|
import (
|
|
"encoding/json"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGiteaSchemaFactory(t *testing.T) {
|
|
schema := GetGiteaWorkflowSchema()
|
|
_ = schema
|
|
|
|
data, err := json.MarshalIndent(schema, "", " ")
|
|
require.NoError(t, err)
|
|
err = os.WriteFile("gitea_workflow_schema.json", append(data, "\n"...), 0o600)
|
|
require.NoError(t, err)
|
|
}
|