mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
* Wrap Complex Type * update * Add java doc and update test * change default wrapComplexType to true * add protobuf-schema-config-complex to CI * add service proto to address CI failure
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Samples Protobuf
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/samples-protobuf.yaml
|
|
- samples/config/petstore/protobuf-schema/**
|
|
- samples/config/petstore/protobuf-schema-config/**
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/samples-protobuf.yaml
|
|
- samples/config/petstore/protobuf-schema/**
|
|
- samples/config/petstore/protobuf-schema-config/**
|
|
jobs:
|
|
build:
|
|
name: Build Protobuf Client
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- 'samples/config/petstore/protobuf-schema/'
|
|
- 'samples/config/petstore/protobuf-schema-config/'
|
|
- 'samples/config/petstore/protobuf-schema-config-complex/'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Protocol Buffers Compiler
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y protobuf-compiler
|
|
- name: Generate Protobuf Schema
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
mkdir out
|
|
protoc --proto_path=. --cpp_out=out models/*.proto services/*.proto
|
|
- name: Verify Generated Files
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
ls -l out/models
|
|
ls -l out/services |