Skip to content

Merge pull request #2 from wacker-dev/action #10

Merge pull request #2 from wacker-dev/action

Merge pull request #2 from wacker-dev/action #10

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
- 'release-**'
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
version: "26.1"
- name: Install protoc-gen-go
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
- name: Verify codegen
run: |
make gen
if [ -n "$(git status --porcelain)" ]; then
echo $(git diff)
echo "codegen is out of date. Please run \"make gen\" to update."
exit 1
else
echo "codegen is up to date."
fi