Skip to content

Testing ci

Testing ci #4

name: Starknet-P2p-Specs-CI
on:
workflow_dispatch:
pull_request:
branches:
- '*'
types:
- opened
- reopened
- synchronize
- auto_merge_enabled
- edited
env:
PROTOC_VERSION: v25.1
jobs:
compile-protos:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install protobuf compiler (protoc)
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Validate .proto files for Rust compatibility
run: protoc --rust_out=/dev/null --fatal_warnings **.proto
- name: Validate .proto files for Java compatibility
run: protoc --java_out=/dev/null --fatal_warnings **.proto
- name: Validate .proto files for python compatibility
run: protoc --python_out=/dev/null --fatal_warnings **.proto
- name: Validate .proto files for C++ compatibility
run: protoc --cpp_out=/dev/null --fatal_warnings **.proto
- name: Validate .proto files for Go compatibility
run: protoc --go_out=/dev/null --fatal_warnings **.proto
- name: Success Message
run: echo "All proto compilations passed!"