Skip to content

Bump google.golang.org/grpc from 1.51.0 to 1.53.0 #1872

Bump google.golang.org/grpc from 1.51.0 to 1.53.0

Bump google.golang.org/grpc from 1.51.0 to 1.53.0 #1872

name: modules_and_generate
on:
push:
branches:
- main
pull_request:
concurrency:
group: modules_and_generate-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GO_VERSION: 1.18.7
jobs:
modules_and_generate:
name: modules_and_generate
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Caching dependency
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/go/bin
key: ${{ runner.os }}-v1-go-mod-${{ hashFiles('**/go.mod') }}-${{ hashFiles('**/go.sum') }}
- name: go mod download
run: |
[[ -d ~/go/pkg/mod ]] && exit 0
# retry up to 3 times in case of network issues
for i in $(seq 1 3); do
go mod download && exit 0
sleep 10
done
exit 1
- name: go mod tidy
run: |
go generate ./...
make tidy
git diff --exit-code || (echo 'Go modules are not tidied and/or generated code is not properly committed. Run `go generate ./... && go mod tidy` and commit the changes.' && exit 1)