Skip to content

refactor: change ProcessHookEvent from bidi streaming to unary RPC (#16) #22

refactor: change ProcessHookEvent from bidi streaming to unary RPC (#16)

refactor: change ProcessHookEvent from bidi streaming to unary RPC (#16) #22

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build ./cmd/kontext
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
proto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install protoc plugins
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
- name: Generate from kontext-dev/proto
run: buf generate
- name: Check generated code is up to date
run: git diff --exit-code gen/ || (echo "Generated code is out of date. Run 'buf generate' and commit." && exit 1)