Skip to content

Commit

Permalink
gh action for validating gen. files
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Dec 20, 2023
1 parent d279597 commit 542f7e2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/validate-generated-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: validate-generated-files

on:
push:
branches: [ main ]
pull_request:

jobs:
validate-generated-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Set up Buf
uses: bufbuild/buf-setup-action@v1

- name: Check generated files
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make install-tools
make generate
make proto-generate
git diff --exit-code --numstat
4 changes: 2 additions & 2 deletions serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import (
"github.com/goccy/go-json"
)

// Serve is the 'entry point' for a processor. It runs a
// Run is the 'entry point' for a processor. It runs a
// 'get a command, send a reply' loop through which it
// communicates with Conduit.
//
// A processor plugin needs to call this function in its main() function.
func Serve(p sdk.ProcessorPlugin) {
func Run(p sdk.ProcessorPlugin) {
for {
cmd, err := internal.NextCommand()
if err != nil {
Expand Down

0 comments on commit 542f7e2

Please sign in to comment.