mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-24 15:55:03 +01:00
Replace expressions engine (#133)
This commit is contained in:
19
pkg/schema/gitea_schema_test.go
Normal file
19
pkg/schema/gitea_schema_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user