Skip to content

Commit

Permalink
Enable github action for kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoyoungxh committed Aug 16, 2023
1 parent 4f90116 commit 5195e1e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 54 deletions.
40 changes: 7 additions & 33 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Pull Request Check
name: Kafka Pull Request Check
on:
pull_request:
paths:
- 'kafka/**'
push:
paths:
- 'kafka/**'
workflow_dispatch:
permissions:
contents: read
pull-requests: read # Use with `only-new-issues` option.
jobs:
build:
name: build
Expand All @@ -18,34 +22,4 @@ jobs:
run: go build -v ./...
- name: Test
run: go test -v ./...
golangci:
name: lint
runs-on: self-hosted
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: true
typos:
name: typos
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: typos
uses: crate-ci/typos@master
go-apidiff:
if: github.event_name == 'pull_request'
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: joelanford/go-apidiff@main

13 changes: 6 additions & 7 deletions kafka/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ require (
github.com/xdg-go/scram v1.1.2
golang.org/x/time v0.3.0
gopkg.in/yaml.v3 v3.0.1
trpc.group/trpc-go/trpc-go v0.2.1-0.20230426081221-79f336e31123
trpc.group/trpc-go/trpc-selector-dsn v0.1.1-0.20230426031841-99e6770aea9c
trpc.group/trpc-go/trpc-go v0.0.0-20230815084720-2337ef2e8e46
trpc.group/trpc-go/trpc-selector-dsn v0.0.0-20230815091309-951ad98567f0
)

require (
Expand All @@ -24,7 +24,6 @@ require (
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/flatbuffers v2.0.0+incompatible // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
Expand Down Expand Up @@ -57,10 +56,10 @@ require (
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/protobuf v1.28.0 // 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
google.golang.org/protobuf v1.30.0 // 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
)
24 changes: 10 additions & 14 deletions kafka/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,8 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
Expand All @@ -241,14 +240,11 @@ gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C
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=
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.2.1-0.20230425082614-dbb64a2f7248/go.mod h1:7JtbbUjZIwQBjbyz5XkMjEpLcomliGWVvyL6JCOtf0c=
trpc.group/trpc-go/trpc-go v0.2.1-0.20230426081221-79f336e31123 h1:JXyRjDW4nAS99NIRIJY4iUTRpK/nd+sxowqdDwdyte4=
trpc.group/trpc-go/trpc-go v0.2.1-0.20230426081221-79f336e31123/go.mod h1:7JtbbUjZIwQBjbyz5XkMjEpLcomliGWVvyL6JCOtf0c=
trpc.group/trpc-go/trpc-selector-dsn v0.1.1-0.20230426031841-99e6770aea9c h1:sZMoVUhtqq6PuwhO9lzkIlbXtA5xkvNV8KM1VuARNlc=
trpc.group/trpc-go/trpc-selector-dsn v0.1.1-0.20230426031841-99e6770aea9c/go.mod h1:lIgpKjUguv9nQtSj0uAylc+SryEOjX7SfOBnhdi/A8E=
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-go/trpc-selector-dsn v0.0.0-20230815091309-951ad98567f0 h1:ib5uRBHmuHQt+GIjkGONKjVeXIfN9bz4Ug0a/L80D7E=
trpc.group/trpc-go/trpc-selector-dsn v0.0.0-20230815091309-951ad98567f0/go.mod h1:IIcuswnjBbWLDjuTsPoYtG2qEZqyTXVhgWxMHf10s2c=
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=

0 comments on commit 5195e1e

Please sign in to comment.