feat: add scripts test and format

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim) 2023-08-23 15:28:32 +08:00
parent 066c16d044
commit 737e797109
No known key found for this signature in database
GPG Key ID: 1BAD6F395338EFDE
8 changed files with 19 additions and 19 deletions

View File

@ -26,7 +26,8 @@ on:
jobs:
create-pr:
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:
- name: Check out code
uses: actions/checkout@v3

View File

@ -58,6 +58,5 @@ func main() {
// openim-rpc-user
switch module {
case "openim-api":
}
}

View File

@ -70,12 +70,12 @@ func Test_fetchYaml(t *testing.T) {
Tag: "!!map",
Value: "",
Content: []*yaml.Node{
&yaml.Node{
{
Kind: yaml.ScalarNode,
Tag: "!!str",
Value: "key",
},
&yaml.Node{
{
Kind: yaml.ScalarNode,
Tag: "!!str",
Value: "value",
@ -126,12 +126,12 @@ func Test_streamYaml(t *testing.T) {
Tag: "!!map",
Value: "",
Content: []*yaml.Node{
&yaml.Node{
{
Kind: yaml.ScalarNode,
Tag: "!!str",
Value: "key",
},
&yaml.Node{
{
Kind: yaml.ScalarNode,
Tag: "!!str",
Value: "value",