Skip to content

Commit

Permalink
fix: Correct the example Protobuf build after update to Protobuf plug…
Browse files Browse the repository at this point in the history
…in 0.5.0
  • Loading branch information
rholshausen committed Aug 21, 2024
1 parent 81a7811 commit d78b31a
Show file tree
Hide file tree
Showing 4 changed files with 589 additions and 582 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,16 @@ jobs:
- name: Run Protobuf examples (Linux)
run: |
set -e
cd protobuf-consumer-jvm
pushd protobuf-consumer-jvm
./gradlew check
cd ../protobuf-consumer-maven
popd
pushd protobuf-consumer-maven
mvn verify
cd ../../..
popd
pushd ../..
docker run -t -v $(pwd):/build protobuf-container -c 'cd examples/protobuf/protobuf-consumer-rust && cargo test'
cd examples/protobuf/protobuf-provider
popd
pushd protobuf-provider
go build main.go
nohup ./main &
PID=$!
Expand Down
6 changes: 3 additions & 3 deletions examples/protobuf/Dockerfile.rust
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM rust:1-buster

ARG PACT_PLUGIN_CLI_VERSION=0.1.0
ARG PACT_PLUGIN_PROTOBUF_VERSION=0.3.2
ARG PACT_PLUGIN_CLI_VERSION=0.1.2
ARG PACT_PLUGIN_PROTOBUF_VERSION=0.5.1

# Install deps
RUN apt clean && apt update && apt install -y git-core gcc wget protobuf-compiler

# Install pact-plugin-cli + protobuf plugin
RUN wget https://github.com/pact-foundation/pact-plugins/releases/download/pact-plugin-cli-v${PACT_PLUGIN_CLI_VERSION}/pact-plugin-cli-linux-x86_64.gz && gunzip pact-plugin-cli-linux-x86_64.gz
RUN mv pact-plugin-cli-linux-x86_64 /usr/local/bin/pact-plugin-cli && chmod +x /usr/local/bin/pact-plugin-cli
RUN pact-plugin-cli -y install protobuf -v 0.3.2
RUN pact-plugin-cli -y install protobuf -v $PACT_PLUGIN_PROTOBUF_VERSION

WORKDIR /build

Expand Down
Loading

0 comments on commit d78b31a

Please sign in to comment.