Skip to content

GRPC: Keep existing outgoing headers #518

GRPC: Keep existing outgoing headers

GRPC: Keep existing outgoing headers #518

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
skip-cache: true
install-mode: binary
codegen:
name: Codegen
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install buf
uses: bufbuild/buf-setup-action@v1
- name: Generate protobuf
run: buf generate
- name: Check for git diff
run: |
if [[ `git status --porcelain` ]]; then
git status
exit 1
fi
- name: Format protobuf
run: buf format --write
- name: Check for git diff
run: |
if [[ `git status --porcelain` ]]; then
git status
exit 1
fi