2024-08-06 14:24:13 +00:00
|
|
|
name: Interoperability Tests
|
|
|
|
|
2023-02-20 13:26:53 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
2024-09-10 16:10:24 +00:00
|
|
|
merge_group:
|
2023-02-20 13:26:53 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2024-07-05 15:33:34 +00:00
|
|
|
- master
|
2023-02-20 13:26:53 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2024-02-27 09:55:43 +00:00
|
|
|
run-transport-interop:
|
|
|
|
name: Run transport interoperability tests
|
2023-02-20 13:26:53 +00:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
2024-10-10 09:42:25 +00:00
|
|
|
- name: Free Disk Space
|
|
|
|
# For some reason we have space issues while running this action. Likely while building the image.
|
|
|
|
# This action will free up some space to avoid the issue.
|
|
|
|
uses: jlumbroso/free-disk-space@v1.3.1
|
|
|
|
with:
|
|
|
|
tool-cache: true
|
|
|
|
|
2024-02-27 09:55:43 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
2023-02-20 13:26:53 +00:00
|
|
|
- name: Build image
|
2024-02-27 09:55:43 +00:00
|
|
|
run: docker buildx build --load -t nim-libp2p-head -f tests/transport-interop/Dockerfile .
|
|
|
|
- name: Run tests
|
|
|
|
uses: libp2p/test-plans/.github/actions/run-transport-interop-test@master
|
2023-02-20 13:26:53 +00:00
|
|
|
with:
|
|
|
|
test-filter: nim-libp2p-head
|
2024-02-27 09:55:43 +00:00
|
|
|
extra-versions: ${{ github.workspace }}/tests/transport-interop/version.json
|
2024-09-26 09:56:09 +00:00
|
|
|
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
|
|
|
|
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
|
|
|
|
s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-region: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_REGION }}
|
2023-12-05 17:37:33 +00:00
|
|
|
|
|
|
|
run-hole-punching-interop:
|
|
|
|
name: Run hole-punching interoperability tests
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build image
|
|
|
|
run: docker buildx build --load -t nim-libp2p-head -f tests/hole-punching-interop/Dockerfile .
|
|
|
|
- name: Run tests
|
|
|
|
uses: libp2p/test-plans/.github/actions/run-interop-hole-punch-test@master
|
|
|
|
with:
|
|
|
|
test-filter: nim-libp2p-head
|
|
|
|
extra-versions: ${{ github.workspace }}/tests/hole-punching-interop/version.json
|
2024-09-26 09:56:09 +00:00
|
|
|
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
|
|
|
|
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
|
|
|
|
s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-region: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_REGION }}
|