Skip to content

Extract sync test utils into dedicated module #11

Extract sync test utils into dedicated module

Extract sync test utils into dedicated module #11

name: Run Integration 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.231.95.227/tcp/7777/p2p/12D3KooWNKz9BJmyWVFUnod6SQYLG4dYZNhs3GrMpiot63Y1DLYS" >> $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 }}