From 919106826130eae3016bcf705134770813ef8c23 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 8 Feb 2023 14:52:37 +0530 Subject: [PATCH] Update to latest interop workflow --- .github/workflows/interop-test.yml | 41 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/interop-test.yml b/.github/workflows/interop-test.yml index de5949bd2b7..8a5cf9b9541 100644 --- a/.github/workflows/interop-test.yml +++ b/.github/workflows/interop-test.yml @@ -1,32 +1,31 @@ name: Interoperability Testing - on: pull_request: push: branches: - - master + - "master" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: - # NOTE: during a pull request run, github creates a merge commit referenced in `github.sha` - # that merge commit is not a regular commit. You won't find it with a regular `git checkout SHA` and - # tools like `go get repo@SHA` won't find it. - # - # As a workaround, we generate a path to the actual pull request's commit, it looks like: - # `github.com/external-org/go-libp2p@latest-commit-on-their-branch` - run-ping-interop-cross-version: - uses: "libp2p/test-plans/.github/workflows/run-composition.yml@master" - with: - composition_file: "ping/_compositions/rust-cross-versions.toml" - custom_git_target: github.com/${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }} - custom_git_reference: ${{ github.event.pull_request.head.sha || github.sha }} - run-ping-interop-cross-implementation: - uses: "libp2p/test-plans/.github/workflows/run-composition.yml@master" - with: - composition_file: "ping/_compositions/go-rust-interop-latest.toml" - custom_git_target: github.com/${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }} - custom_git_reference: ${{ github.event.pull_request.head.sha || github.sha }} - custom_interop_target: rust + run-multidim-interop: + name: Run multidimensional interoperability tests + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 + with: + shared-key: interop-tests + save-if: ${{ github.ref == 'refs/heads/master' }} + - name: Install Protoc + run: sudo apt-get install protobuf-compiler + - name: Build image + run: | + cargo build --release -p interop-tests + docker build -t rust-libp2p-head --build-arg=TEST_BINARY=target/release/ping . -f interop-tests/Dockerfile + - uses: libp2p/test-plans/.github/actions/run-interop-ping-test@c9130e425d266e5b222636d61348c0f8d6b978e4 + with: + test-filter: rust-libp2p-head + extra-versions: ${{ github.workspace }}/interop-tests/ping-version.json