Skip to content

ci: Update arduino/setup-protoc to v2.0.0 #119

ci: Update arduino/setup-protoc to v2.0.0

ci: Update arduino/setup-protoc to v2.0.0 #119

Workflow file for this run

# Continuous integration handling for Protocol Buffers
name: ci-protobuf
on:
pull_request:
paths:
- .github/workflows/ci-protobuf.yml
- go.mod
- go.sum
- 'tfprotov5/internal/tfplugin5/*'
- 'tfprotov6/internal/tfplugin6/*'
- tools/go.mod
- tools/go.sum
permissions:
contents: read
jobs:
protoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: 'go.mod'
- uses: arduino/setup-protoc@9b1ee5b22b0a3f1feb8c2ff99b32c89b3c3191e9 # v2.0.0
with:
# The version string is embedded in protoc generated files, so it is
# pinned here to prevent unexpected differences. Follow the
# https://github.com/protocolbuffers/protobuf repository for protoc
# release updates.
version: '23.2'
- run: go mod download
- run: make tools
- run: make protoc
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; git diff; echo; echo "Unexpected difference in directories after code generation. Run 'protoc' command and commit."; exit 1)