Ensure p2p protocol matches new Starknet spec #10052
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Juno Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Run Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, ubuntu-arm64-4-core] | |
runs-on: ${{ matrix.os }} | |
env: | |
VM_DEBUG: true | |
steps: | |
- uses: actions/checkout@v4 | |
# Add Go dependency caching | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Set up go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
# Add explicit dependency resolution steps | |
- name: Download and verify dependencies | |
run: | | |
go mod download | |
go mod verify | |
go mod tidy | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
vm/rust | |
core/rust | |
starknet/compiler/rust | |
- name: Install deps | |
run: make install-deps | |
- name: Install Jemalloc (Linux) | |
if: runner.os == 'Linux' | |
run: sudo apt-get update -qq && sudo apt-get install -y libjemalloc-dev libjemalloc2 libbz2-dev | |
- name: Install dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: brew install jemalloc | |
- name: Tests (Coverage) | |
if: matrix.os == 'ubuntu-latest' | |
run: make test-cover | |
- name: Tests (No Coverage) | |
if: matrix.os != 'ubuntu-latest' | |
run: make test | |
- name: Upload coverage to Codecov | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: coverage.out |