Skip to content

Commit d5a7102

Browse files
authored
[Protobuf] tests protobuf-schema generator in CI (#7841)
* test protobuf schema * remove sudo * use different image * proto files * test with go * test with go * test with go * test with go * break the build * Revert "break the build" This reverts commit 81c10e7. * remove comment * move config * remove old protobuf-schema.yaml
1 parent 96efc76 commit d5a7102

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

CI/.drone.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ kind: pipeline
22
name: default
33

44
steps:
5+
# test protobuf schema generator
6+
- name: protobuf-schema-test
7+
image: nanoservice/protobuf-go
8+
commands:
9+
- protoc --version
10+
- mkdir /var/tmp/go/
11+
- cd samples/config/petstore/protobuf-schema
12+
- protoc --go_out=/var/tmp/go/ services/*
13+
- protoc --go_out=/var/tmp/go/ models/*
514
# test aspnetcore 3.x
615
- name: aspnetcore-test
716
image: mcr.microsoft.com/dotnet/core/sdk:3.1
@@ -28,7 +37,7 @@ steps:
2837
- name: java11-test
2938
image: openjdk:11.0
3039
commands:
31-
- ./mvnw -quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
40+
- ./mvnw --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3241
- ./mvnw --quiet verify -Psamples.droneio -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3342
# test java native client
3443
- ./mvnw clean test -f samples/client/petstore/java/native/pom.xml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
README.md
2+
models/api_response.proto
3+
models/category.proto
4+
models/inline_object.proto
5+
models/inline_object1.proto
6+
models/order.proto
7+
models/pet.proto
8+
models/tag.proto
9+
models/user.proto
10+
services/pet_service.proto
11+
services/store_service.proto
12+
services/user_service.proto

0 commit comments

Comments
 (0)