Skip to content

Commit

Permalink
testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonLStarkWare committed Dec 1, 2024
1 parent dcd23cf commit 542ae8a
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/starknet_p2p_specs_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,43 @@ on:
workflow_dispatch:
pull_request:
branches:
- 'main'
- 'v*.*'
- 'v*.*.*'
- 'alonl/ci_test'
- '*'
types:
- opened
- reopened
- synchronize
- auto_merge_enabled
paths:
- '.github/workflows/starknet_p2p_sepcs_ci.yaml'
- '--fatal_warnings **.proto'

merge_group:
types: [checks_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
- edited

env:
PROTOC_VERSION: v25.1

jobs:
compile-protos:
runs-on: starkware-ubuntu-latest-medium
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install protobuf compiler (protoc)
run: |
sudo apt-get update
sudo apt-det install -y protobuf-compiler
sudo apt-get install -y protobuf-compiler
- name: Validate .proto files for Rust compatibility
run: protoc --rust_out=/dev/null --fatal_warnings **.proto
run: protoc --rust_out=/dev/null *.proto

- name: Validate .proto files for Java compatibility
run: protoc --java_out=/dev/null --fatal_warnings **.proto
run: protoc --java_out=/dev/null *.proto

- name: Validate .proto files for python compatibility
run: protoc --python_out=/dev/null --fatal_warnings **.proto
run: protoc --python_out=/dev/null *.proto

- name: Validate .proto files for C++ compatibility
run: protoc --cpp_out=/dev/null --fatal_warnings **.proto
run: protoc --cpp_out=/dev/null *.proto

- name: Validate .proto files for Go compatibility
run: protoc --go_out=/dev/null --fatal_warnings **.proto
run: protoc --go_out=/dev/null *.proto

- name: Success Message
run: echo "All proto compilations passed!"

0 comments on commit 542ae8a

Please sign in to comment.