mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-18 12:07:01 +08:00
feat: add scripts test and format
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
parent
066c16d044
commit
737e797109
3
.github/workflows/auto-gh-pr.yml
vendored
3
.github/workflows/auto-gh-pr.yml
vendored
@ -26,7 +26,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
create-pr:
|
create-pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged == true
|
if: github.event.pull_request.base.ref == 'main'
|
||||||
|
# && github.event.pull_request.merged == true
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
@ -58,6 +58,5 @@ func main() {
|
|||||||
// openim-rpc-user
|
// openim-rpc-user
|
||||||
switch module {
|
switch module {
|
||||||
case "openim-api":
|
case "openim-api":
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,12 +70,12 @@ func Test_fetchYaml(t *testing.T) {
|
|||||||
Tag: "!!map",
|
Tag: "!!map",
|
||||||
Value: "",
|
Value: "",
|
||||||
Content: []*yaml.Node{
|
Content: []*yaml.Node{
|
||||||
&yaml.Node{
|
{
|
||||||
Kind: yaml.ScalarNode,
|
Kind: yaml.ScalarNode,
|
||||||
Tag: "!!str",
|
Tag: "!!str",
|
||||||
Value: "key",
|
Value: "key",
|
||||||
},
|
},
|
||||||
&yaml.Node{
|
{
|
||||||
Kind: yaml.ScalarNode,
|
Kind: yaml.ScalarNode,
|
||||||
Tag: "!!str",
|
Tag: "!!str",
|
||||||
Value: "value",
|
Value: "value",
|
||||||
@ -126,12 +126,12 @@ func Test_streamYaml(t *testing.T) {
|
|||||||
Tag: "!!map",
|
Tag: "!!map",
|
||||||
Value: "",
|
Value: "",
|
||||||
Content: []*yaml.Node{
|
Content: []*yaml.Node{
|
||||||
&yaml.Node{
|
{
|
||||||
Kind: yaml.ScalarNode,
|
Kind: yaml.ScalarNode,
|
||||||
Tag: "!!str",
|
Tag: "!!str",
|
||||||
Value: "key",
|
Value: "key",
|
||||||
},
|
},
|
||||||
&yaml.Node{
|
{
|
||||||
Kind: yaml.ScalarNode,
|
Kind: yaml.ScalarNode,
|
||||||
Tag: "!!str",
|
Tag: "!!str",
|
||||||
Value: "value",
|
Value: "value",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user