Skip to content

chore: update dependencies #1881

chore: update dependencies

chore: update dependencies #1881

name: Check protobuf generated files up-to-date
on:
- pull_request
jobs:
check-proto-generate-up-to-date:
strategy:
matrix:
go-version:
- 1.19
os:
- ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install prereqs
run: |
go install github.com/rakyll/statik
- name: Generate proto files and docs
run: make proto-format proto-gen
- name: Check for changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo Following files are changed...
git status
echo Changes:
git diff
exit 1;
else
exit 0;
fi