Skip to content

Commit

Permalink
Update GitHub Actions to run performance benchmarks
Browse files Browse the repository at this point in the history
- Renamed job to 'Run p2p tests and benchmarks'
- Changed performance tests to performance benchmarks
- Updated command to use go test with bench flag for performance
- Kept conformance tests unchanged
  • Loading branch information
GawronskaSylwia committed Sep 11, 2024
1 parent b1a8726 commit 585e378
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: Run Tests and Benchmarks

on:
push:
Expand All @@ -7,8 +7,8 @@ on:
branches: [ main ]

jobs:
test:
name: Run p2p tests
test-and-benchmark:
name: Run p2p tests and benchmarks
runs-on: ubuntu-latest

steps:
Expand All @@ -26,8 +26,8 @@ jobs:
- 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 tests
run: go test -v -timeout 5m ./tests/performance
- name: Run performance benchmarks
run: go test -v -bench=. -benchtime=1x ./tests/performance
env:
TARGET_PEER_ADDRESS: ${{ env.TARGET_PEER_ADDRESS }}

Expand Down

0 comments on commit 585e378

Please sign in to comment.