-
Notifications
You must be signed in to change notification settings - Fork 939
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50c4dbf
commit 9191068
Showing
1 changed file
with
20 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |