Skip to content

correct link of hash and curve (#3) #10

correct link of hash and curve (#3)

correct link of hash and curve (#3) #10

name: Check make generate
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
check-go-generate:
name: Check make generate-go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21' # Specify the Go version you're using
- name: Install protoc-gen-go and protoc-gen-go-grpc
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
go install github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
go install github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
echo "${HOME}/go/bin" >> $GITHUB_PATH
- uses: bufbuild/[email protected]
with:
version: 1.32.1
- name: Check buf installation
run: buf --version
- name: Run make generate-go
run: make generate-go
- name: Check if make generate-go generated changes that should be committed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: make generate-go generated changes that should be committed. Please run 'make generate-go' and commit the changes."
git diff
git status
exit 1
fi
check-rust-generate:
name: Check make generate-rs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/[email protected]
- name: Install Protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Run make generate-rs
run: make generate-rs
- name: Check if make generate-rs generated changes that should be committed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: make generate-rs generated changes that should be committed. Please run 'make generate-rs' and commit the changes."
git diff
git status
exit 1
fi