[COMPLIANCE] Add copyright and license headers #117
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/*' | |
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@v1 | |
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. | |
# NOTE: Cannot yet update to version >= 21 due to: | |
# https://github.com/arduino/setup-protoc/issues/33 | |
version: '3.19.4' | |
- 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) |