Skip to content

chore(ci): Enable S3 caching for interop #1657

chore(ci): Enable S3 caching for interop

chore(ci): Enable S3 caching for interop #1657

Workflow file for this run

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-interop-tests:
name: Run ${{ matrix.test-type }} Tests
runs-on: ubuntu-22.04
if: success() || failure()
strategy:
matrix:
test-type:
- transport-interop
- hole-punching-interop
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Image
run: |
docker buildx build --load -t nim-libp2p-head -f tests/${{ matrix.test-type }}/Dockerfile .
- name: Run Tests
uses: libp2p/test-plans/.github/actions/run-${{ matrix.test-type == 'transport-interop' && 'transport-interop-test' || 'interop-hole-punch-test' }}@master

Check failure on line 38 in .github/workflows/interop.yml

View workflow run for this annotation

GitHub Actions / Interoperability Tests

Invalid workflow file

The workflow is not valid. .github/workflows/interop.yml (Line: 38, Col: 15): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.test-type == 'transport-interop' && 'transport-interop-test' || 'interop-hole-punch-test'
with:
test-filter: nim-libp2p-head
extra-versions: ${{ github.workspace }}/tests/${{ matrix.test-type }}/version.json
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 }}