fix(ci): update CI to generate protobuf and Ent ORM files
This commit is contained in:
54
.github/workflows/ci.yml
vendored
54
.github/workflows/ci.yml
vendored
@@ -33,6 +33,23 @@ jobs:
|
||||
- name: Verify dependencies
|
||||
run: go mod verify
|
||||
|
||||
- name: Install protoc and plugins
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y protobuf-compiler
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
|
||||
- name: Generate protobuf files
|
||||
run: make generate-proto
|
||||
|
||||
- name: Generate Ent ORM files
|
||||
run: |
|
||||
go install entgo.io/ent/cmd/ent@latest
|
||||
if [ -d "ent" ] && [ -f "ent/generate.go" ]; then
|
||||
cd ent && go generate ./...
|
||||
fi
|
||||
|
||||
- name: Check for test files
|
||||
id: check-tests
|
||||
run: |
|
||||
@@ -78,6 +95,26 @@ jobs:
|
||||
with:
|
||||
go-version: '1.25.3'
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Install protoc and plugins
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y protobuf-compiler
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
|
||||
- name: Generate protobuf files
|
||||
run: make generate-proto
|
||||
|
||||
- name: Generate Ent ORM files
|
||||
run: |
|
||||
go install entgo.io/ent/cmd/ent@latest
|
||||
if [ -d "ent" ] && [ -f "ent/generate.go" ]; then
|
||||
cd ent && go generate ./...
|
||||
fi
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v7
|
||||
with:
|
||||
@@ -107,6 +144,23 @@ jobs:
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Install protoc and plugins
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y protobuf-compiler
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
|
||||
- name: Generate protobuf files
|
||||
run: make generate-proto
|
||||
|
||||
- name: Generate Ent ORM files
|
||||
run: |
|
||||
go install entgo.io/ent/cmd/ent@latest
|
||||
if [ -d "ent" ] && [ -f "ent/generate.go" ]; then
|
||||
cd ent && go generate ./...
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
go build -v -o bin/platform ./cmd/platform
|
||||
|
||||
Reference in New Issue
Block a user