|
1 | 1 | name: Interoperability Testing |
2 | | - |
3 | 2 | on: |
4 | 3 | pull_request: |
5 | 4 | push: |
6 | 5 | branches: |
7 | | - - master |
| 6 | + - "master" |
8 | 7 |
|
9 | 8 | concurrency: |
10 | 9 | group: ${{ github.workflow }}-${{ github.ref }} |
11 | 10 | cancel-in-progress: true |
12 | 11 |
|
13 | 12 | jobs: |
14 | | - # NOTE: during a pull request run, github creates a merge commit referenced in `github.sha` |
15 | | - # that merge commit is not a regular commit. You won't find it with a regular `git checkout SHA` and |
16 | | - # tools like `go get repo@SHA` won't find it. |
17 | | - # |
18 | | - # As a workaround, we generate a path to the actual pull request's commit, it looks like: |
19 | | - # `github.com/external-org/go-libp2p@latest-commit-on-their-branch` |
20 | | - run-ping-interop-cross-version: |
21 | | - uses: "libp2p/test-plans/.github/workflows/run-composition.yml@master" |
22 | | - with: |
23 | | - composition_file: "ping/_compositions/rust-cross-versions.toml" |
24 | | - custom_git_target: github.com/${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }} |
25 | | - custom_git_reference: ${{ github.event.pull_request.head.sha || github.sha }} |
26 | | - run-ping-interop-cross-implementation: |
27 | | - uses: "libp2p/test-plans/.github/workflows/run-composition.yml@master" |
| 13 | + build-ping-container: |
| 14 | + name: Build Ping interop container |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v3 |
| 18 | + with: |
| 19 | + submodules: recursive |
| 20 | + - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 |
| 21 | + with: |
| 22 | + shared-key: interop-tests |
| 23 | + save-if: ${{ github.ref == 'refs/heads/master' }} |
| 24 | + - name: Install Protoc |
| 25 | + run: sudo apt-get install protobuf-compiler |
| 26 | + - name: Build image |
| 27 | + working-directory: ./test-plans |
| 28 | + run: make |
| 29 | + - name: Upload ping versions info |
| 30 | + uses: actions/upload-artifact@v3 |
| 31 | + with: |
| 32 | + name: ping-versions |
| 33 | + path: ./test-plans/ping-versions.json |
| 34 | + - name: Upload image tar |
| 35 | + uses: actions/upload-artifact@v3 |
| 36 | + with: |
| 37 | + name: ping-image |
| 38 | + path: ./test-plans/ping-image.tar |
| 39 | + run-multidim-interop: |
| 40 | + name: Run multidimensional interoperability tests |
| 41 | + needs: build-ping-container |
| 42 | + uses: "libp2p/test-plans/.github/workflows/run-testplans.yml@master" |
28 | 43 | with: |
29 | | - composition_file: "ping/_compositions/all-interop-latest.toml" |
30 | | - custom_git_target: github.com/${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }} |
31 | | - custom_git_reference: ${{ github.event.pull_request.head.sha || github.sha }} |
32 | | - custom_interop_target: rust |
| 44 | + dir: "multidim-interop" |
| 45 | + extra-versions: ping-versions |
| 46 | + image-tar: ping-image |
| 47 | + test-filter: "rust-libp2p-head" |
0 commit comments