From 04a073073e1a9cb6cdc06db38fc1a8d540b117b0 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Wed, 31 Aug 2022 16:46:31 +0200 Subject: [PATCH] ci: add cross-version interop (#1725) --- .github/workflows/interop-test.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/interop-test.yml b/.github/workflows/interop-test.yml index 0613498243..6f7486f1b5 100644 --- a/.github/workflows/interop-test.yml +++ b/.github/workflows/interop-test.yml @@ -2,15 +2,22 @@ on: [push, pull_request] name: Interoperability Testing 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/go-cross-versions.toml" - # 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` 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: go \ No newline at end of file