chore(ci): Enable S3 caching for interop #1636
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Interoperability Tests | ||
on: | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
run-transport-interop: | ||
name: Run transport interoperability tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
# For some reason the original job (libp2p/test-plans) has enough disk space, but this one doesn't. | ||
uses: jlumbroso/free-disk-space@v1.3.1 | ||
with: | ||
tool-cache: true | ||
- uses: actions/checkout@v4 | ||
- uses: docker/setup-buildx-action@v3 | ||
- name: Build image | ||
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 | ||
with: | ||
test-filter: nim-libp2p-head | ||
extra-versions: ${{ github.workspace }}/tests/transport-interop/version.json | ||
with: | ||
Check failure on line 35 in .github/workflows/interop.yml GitHub Actions / Interoperability TestsInvalid workflow file
|
||
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 }} | ||
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 | ||
with: | ||
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 }} |