Skip to content

Commit b83dd95

Browse files
chore: update interop test run condition (#5611)
## Description Follow up to #5604. Interop tests only work on the main `rust-libp2p` repo, and not on forks, because of the S3 cache (introduced in #5586). The interop tests currently don't run in the PRs, but they run after the PRs are merged to `master`. This PR is trying to run interop tests in PR that are branches of the main repo (not forks).
1 parent 89d78dd commit b83dd95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/interop-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111
jobs:
1212
run-transport-interop:
1313
name: Run transport interoperability tests
14+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
1415
runs-on: ${{ fromJSON(github.repository == 'libp2p/rust-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
1516
strategy:
1617
matrix:
@@ -39,6 +40,7 @@ jobs:
3940
worker-count: 16
4041
run-holepunching-interop:
4142
name: Run hole-punch interoperability tests
43+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
4244
runs-on: ${{ fromJSON(github.repository == 'libp2p/rust-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
4345
steps:
4446
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)