Skip to content

small simplification of protodot generation; reduced error noise in CI #28

small simplification of protodot generation; reduced error noise in CI

small simplification of protodot generation; reduced error noise in CI #28

Workflow file for this run

name: Build and Test
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
report:
name: Report
runs-on: ubuntu-latest
steps:
- name: ref
run: echo ${{ github.ref }}
- name: event_name
run: echo ${{ github.event_name }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- uses: arduino/setup-protoc@v2
with:
version: '21.9'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v2
with:
go-version: ^1.20
- name: install protodot
run: go install github.com/seamia/[email protected]
- name: install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: make
run: make proto
- name: check no uncommitted files
run: |
echo "changed and uncommitted files, excluding versions"
diff=$(git diff -I'^\/\/\s+protoc(-gen-go)?\s+v[0-9]+\.[0-9+\.[0-9]+\s*$')
if [ -n "diff" ]; then
# print the diff so we can fix it, if there is an issue
echo
echo "differences other than tool version changes:"
print "$diff"
echo
echo "differences including tool version changes:"
git diff
exit 1
fi