Skip to content

Commit

Permalink
Enable github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoyoungxh committed Aug 16, 2023
1 parent 4f90116 commit 2a46559
Show file tree
Hide file tree
Showing 26 changed files with 360 additions and 1,660 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cos Pull Request Check
on:
pull_request:
paths:
- 'cos/**'
push:
paths:
- 'cos/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd cos && go build -v ./...
- name: Test
run: cd cos && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/goredis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Goredis Pull Request Check
on:
pull_request:
paths:
- 'goredis/**'
push:
paths:
- 'goredis/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd goredis && go build -v ./...
- name: Test
run: cd goredis && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/gorm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Gorm Pull Request Check
on:
pull_request:
paths:
- 'gorm/**'
push:
paths:
- 'gorm/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd gorm && go build -v ./...
- name: Test
run: cd gorm && go test -v -gcflags=all=-l ./...

25 changes: 25 additions & 0 deletions .github/workflows/kafka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Kafka Pull Request Check
on:
pull_request:
paths:
- 'kafka/**'
push:
paths:
- 'kafka/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd kafka && go build -v ./...
- name: Test
run: cd kafka && go test -v ./...

25 changes: 25 additions & 0 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Mysql Pull Request Check
on:
pull_request:
paths:
- 'mysql/**'
push:
paths:
- 'mysql/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd mysql && go build -v ./...
- name: Test
run: cd mysql && go test -v -gcflags=all=-l ./...

51 changes: 0 additions & 51 deletions .github/workflows/pr.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/timer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Timer Pull Request Check
on:
pull_request:
paths:
- 'timer/**'
push:
paths:
- 'timer/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build
run: cd timer && go build -v ./...
- name: Test
run: cd timer && go test -v -gcflags=all=-l ./...

9 changes: 4 additions & 5 deletions cos/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require (
github.com/golang/mock v1.6.0
github.com/stretchr/testify v1.8.0
github.com/tencentyun/cos-go-sdk-v5 v0.7.38
trpc.group/trpc-go/trpc-go v0.13.1-0.20230612122242-3cd3cd651406
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.1.2-0.20230530025122-c44533fe44bd
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.0.0-20230803031059-de4168eb5952
)

require (
Expand Down Expand Up @@ -44,11 +44,10 @@ require (
go.uber.org/zap v1.24.0 // indirect
golang.org/x/arch v0.0.0-20200826200359-b19915210f00 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
trpc.group/trpc-go/go_reuseport v1.7.1-0.20230423021710-f5eeff5d87a3 // indirect
trpc.group/trpc-go/jce v0.0.0-20230424070841-15a24b5c5646 // indirect
trpc.group/trpc-go/tnet v0.0.12-0.20230423031524-5eb1cc42f225 // indirect
trpc.group/trpc-go/tnet v0.0.0-20230810071536-9d05338021cf // indirect
)
17 changes: 7 additions & 10 deletions cos/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down Expand Up @@ -171,13 +172,9 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
trpc.group/trpc-go/go_reuseport v1.7.1-0.20230423021710-f5eeff5d87a3 h1:FN4gLJ2xxueQ/LYPxfrAwq6hmdHJaAftFZm8qvqI63o=
trpc.group/trpc-go/go_reuseport v1.7.1-0.20230423021710-f5eeff5d87a3/go.mod h1:9yQwBnMw+3ceJd5MPqP18t6y/EAi7fEh59MiFcqeS78=
trpc.group/trpc-go/jce v0.0.0-20230424070841-15a24b5c5646 h1:M4oUcsNl+m3KR1aCcNKRonz4Vh7V7fkkypaDjCLFn1s=
trpc.group/trpc-go/jce v0.0.0-20230424070841-15a24b5c5646/go.mod h1:uL8cZA2t+vz9KKNQYJrW9oy8JynTF1UCM62WvDgsyPY=
trpc.group/trpc-go/tnet v0.0.12-0.20230423031524-5eb1cc42f225 h1:sExJeNiDhhQ7dP6P0afYZ+HU1MnnMYhlnDApSmCLu9U=
trpc.group/trpc-go/tnet v0.0.12-0.20230423031524-5eb1cc42f225/go.mod h1:YUGAw+mutXH1ILO6UzoZYeT7G/9l5xmEDXmp/CvaP/E=
trpc.group/trpc-go/trpc-go v0.13.1-0.20230612122242-3cd3cd651406 h1:9dg0gbA4sI4GxQ3wXF5ZejNSKSwOnnEyW2MEMKhTskk=
trpc.group/trpc-go/trpc-go v0.13.1-0.20230612122242-3cd3cd651406/go.mod h1:nDJo5sFj5cVDgndL5FV2n0C9kJUIbVYUA4E59ja9G3k=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.1.2-0.20230530025122-c44533fe44bd h1:mFEoX5jBSSy/4a8HSGWreuGVaoj8fxc7eDgROTrMc7A=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.1.2-0.20230530025122-c44533fe44bd/go.mod h1:K+a1K/Gnlcg9BFHWx30vLBIEDhxODhl25gi1JjA54CQ=
trpc.group/trpc-go/tnet v0.0.0-20230810071536-9d05338021cf h1:Qo0p6ZJV60Qd5XajiIDidVgx1NDM9UHL7DzDKc2gqns=
trpc.group/trpc-go/tnet v0.0.0-20230810071536-9d05338021cf/go.mod h1:s/webUFYWEFBHErKyFmj7LYC7XfC2LTLCcwfSnJ04M0=
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46 h1:IZLd2AT6LLbmxgBrHQPVvpejvdEfqNbzksWoGJj6RVI=
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46/go.mod h1:ve2YyZleGVbnKr0RLUJcu35dXw2zZmsi3RdKVPgL4+4=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.0.0-20230803031059-de4168eb5952 h1:AhjP72IKa1YKnSIayk1X5xSzKrem0EanjZ7oMc2HYOw=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.0.0-20230803031059-de4168eb5952/go.mod h1:K+a1K/Gnlcg9BFHWx30vLBIEDhxODhl25gi1JjA54CQ=
9 changes: 4 additions & 5 deletions goredis/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ require (
github.com/stretchr/testify v1.8.3
go.uber.org/automaxprocs v1.5.2
google.golang.org/protobuf v1.30.0
trpc.group/trpc-go/jce v0.0.0-20230509062345-1f2807c6bfd6
trpc.group/trpc-go/trpc-go v0.13.1-0.20230612122242-3cd3cd651406
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46
)

require (
Expand Down Expand Up @@ -60,13 +59,13 @@ require (
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20220504150022-98cd25cafc72 // indirect
google.golang.org/grpc v1.51.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
trpc.group/trpc-go/go_reuseport v1.7.1-0.20230423021710-f5eeff5d87a3 // indirect
trpc.group/trpc-go/tnet v0.0.12-0.20230423031524-5eb1cc42f225 // indirect
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.1.2-0.20230530025122-c44533fe44bd // indirect
trpc.group/trpc-go/tnet v0.0.0-20230810071536-9d05338021cf // indirect
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.0.0-20230803031059-de4168eb5952 // indirect
)
17 changes: 7 additions & 10 deletions goredis/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down Expand Up @@ -651,13 +652,9 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
trpc.group/trpc-go/go_reuseport v1.7.1-0.20230423021710-f5eeff5d87a3 h1:FN4gLJ2xxueQ/LYPxfrAwq6hmdHJaAftFZm8qvqI63o=
trpc.group/trpc-go/go_reuseport v1.7.1-0.20230423021710-f5eeff5d87a3/go.mod h1:9yQwBnMw+3ceJd5MPqP18t6y/EAi7fEh59MiFcqeS78=
trpc.group/trpc-go/jce v0.0.0-20230509062345-1f2807c6bfd6 h1:Stc6Yy33I+8seB5nwd65JgLK8GQ7mrgYZS2wGryuwW0=
trpc.group/trpc-go/jce v0.0.0-20230509062345-1f2807c6bfd6/go.mod h1:uL8cZA2t+vz9KKNQYJrW9oy8JynTF1UCM62WvDgsyPY=
trpc.group/trpc-go/tnet v0.0.12-0.20230423031524-5eb1cc42f225 h1:sExJeNiDhhQ7dP6P0afYZ+HU1MnnMYhlnDApSmCLu9U=
trpc.group/trpc-go/tnet v0.0.12-0.20230423031524-5eb1cc42f225/go.mod h1:YUGAw+mutXH1ILO6UzoZYeT7G/9l5xmEDXmp/CvaP/E=
trpc.group/trpc-go/trpc-go v0.13.1-0.20230612122242-3cd3cd651406 h1:9dg0gbA4sI4GxQ3wXF5ZejNSKSwOnnEyW2MEMKhTskk=
trpc.group/trpc-go/trpc-go v0.13.1-0.20230612122242-3cd3cd651406/go.mod h1:nDJo5sFj5cVDgndL5FV2n0C9kJUIbVYUA4E59ja9G3k=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.1.2-0.20230530025122-c44533fe44bd h1:mFEoX5jBSSy/4a8HSGWreuGVaoj8fxc7eDgROTrMc7A=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.1.2-0.20230530025122-c44533fe44bd/go.mod h1:K+a1K/Gnlcg9BFHWx30vLBIEDhxODhl25gi1JjA54CQ=
trpc.group/trpc-go/tnet v0.0.0-20230810071536-9d05338021cf h1:Qo0p6ZJV60Qd5XajiIDidVgx1NDM9UHL7DzDKc2gqns=
trpc.group/trpc-go/tnet v0.0.0-20230810071536-9d05338021cf/go.mod h1:s/webUFYWEFBHErKyFmj7LYC7XfC2LTLCcwfSnJ04M0=
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46 h1:IZLd2AT6LLbmxgBrHQPVvpejvdEfqNbzksWoGJj6RVI=
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46/go.mod h1:ve2YyZleGVbnKr0RLUJcu35dXw2zZmsi3RdKVPgL4+4=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.0.0-20230803031059-de4168eb5952 h1:AhjP72IKa1YKnSIayk1X5xSzKrem0EanjZ7oMc2HYOw=
trpc.group/trpc/trpc-protocol/pb/go/trpc v0.0.0-20230803031059-de4168eb5952/go.mod h1:K+a1K/Gnlcg9BFHWx30vLBIEDhxODhl25gi1JjA54CQ=
2 changes: 0 additions & 2 deletions goredis/internal/jce/doc.go

This file was deleted.

36 changes: 0 additions & 36 deletions goredis/internal/jce/level.jce.go

This file was deleted.

Loading

0 comments on commit 2a46559

Please sign in to comment.