Skip to content

Add e2e tests for p2p juno to juno sync #46

Add e2e tests for p2p juno to juno sync

Add e2e tests for p2p juno to juno sync #46

Workflow file for this run

name: Run Tests and Benchmarks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-and-benchmark:
name: Run p2p tests and benchmarks
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install dependencies
working-directory: ./integration
run: go mod download
- name: Set TARGET_PEER_ADDRESS environment variable
run: echo "TARGET_PEER_ADDRESS=/ip4/35.237.66.77/tcp/7777/p2p/12D3KooWR8ikUDiinyE5wgdYiqsdLfJRsBDYKGii6L3oyoipVEaV" >> $GITHUB_ENV
- name: Run performance benchmarks
working-directory: ./integration/tests/performance
run: go test -v -bench=. -benchtime=1x
env:
TARGET_PEER_ADDRESS: ${{ env.TARGET_PEER_ADDRESS }}
- name: Run conformance tests
working-directory: ./integration/tests/conformance
run: go test -v
env:
TARGET_PEER_ADDRESS: ${{ env.TARGET_PEER_ADDRESS }}