Skip to content

Commit

Permalink
[change] unit-tests workflow & remove OSS support
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Sep 1, 2022
1 parent 2e1ef3e commit f66d6bc
Show file tree
Hide file tree
Showing 10 changed files with 575 additions and 609 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: UnitTest

on:
workflow_dispatch:
inputs:
tags:
description: "Comment"
push:
branches: [main]

Expand Down Expand Up @@ -40,19 +44,19 @@ jobs:
- name: Checkout Kun
uses: actions/checkout@v2
with:
repository: yaoapp/kun
repository: ${{ github.event.org.login }}/kun
path: kun

- name: Checkout Xun
uses: actions/checkout@v2
with:
repository: yaoapp/xun
repository: ${{ github.event.org.login }}/xun
path: xun

- name: Checkout Gou
uses: actions/checkout@v2
with:
repository: yaoapp/gou
repository: ${{ github.event.org.login }}/gou
path: gou

- name: Checkout V8Go
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
dist
ui
^ui/index.html
tests/data/*/*
tests/data/*
debug.log
yao-test
dev.sh
logs
logs/application.log
yao-arm64
tests/db/yao.db
env.*.sh
4 changes: 0 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.18

require (
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1286
github.com/aliyun/aliyun-oss-go-sdk v2.1.10+incompatible
github.com/caarlos0/env/v6 v6.9.1
github.com/elazarl/go-bindata-assetfs v1.0.1
github.com/fatih/color v1.13.0
Expand All @@ -26,7 +25,6 @@ require (

require (
github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2 // indirect
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down Expand Up @@ -64,7 +62,6 @@ require (
github.com/richardlehane/mscfb v1.0.3 // indirect
github.com/richardlehane/msoleps v1.0.1 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/takama/daemon v1.0.0 // indirect
Expand All @@ -83,7 +80,6 @@ require (
golang.org/x/net v0.0.0-20220526153639-5463443f8c37 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
golang.org/x/tools v0.1.7 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
google.golang.org/genproto v0.0.0-20220526192754-51939a95c655 // indirect
Expand Down
1 change: 0 additions & 1 deletion tests/plugins/user/README.md

This file was deleted.

21 changes: 8 additions & 13 deletions workflow/api_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
package workflow

import (
"testing"
// Workflow will be removed from engine

"github.com/stretchr/testify/assert"
"github.com/yaoapp/gou"
)
// func TestSetupAPIs(t *testing.T) {
// assignFlow := Select("assign")
// assignFlow.SetupAPIs()

func TestSetupAPIs(t *testing.T) {
assignFlow := Select("assign")
assignFlow.SetupAPIs()

api := gou.SelectAPI("xiang.workflow.assign")
assert.Equal(t, "xiang.workflow.assign", api.Name)
assert.Equal(t, 10, len(api.HTTP.Paths))
}
// api := gou.SelectAPI("xiang.workflow.assign")
// assert.Equal(t, "xiang.workflow.assign", api.Name)
// assert.Equal(t, 10, len(api.HTTP.Paths))
// }
2 changes: 2 additions & 0 deletions workflow/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package workflow

import "github.com/yaoapp/gou"

// WARNING: the Workflow widget will be removed from yao engine

// Process
// 读取工作流 xiang.workflow.Find(name, workflow_id)
// 读取工作流 xiang.workflow.Open(name, uid, data_id)
Expand Down
Loading

0 comments on commit f66d6bc

Please sign in to comment.