Skip to content

Commit

Permalink
workflow call
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Aug 13, 2024
1 parent 537e02a commit 2b397b6
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/e2e-test-evm-workflow-call.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
on:
workflow_call:
inputs:
dymension_ci:
description: "CI run on Dymension Repo"
required: false
type: string
default: "latest"
rollapp_evm_ci:
description: "CI run on Rollapp-EVM Repo"
required: false
type: string
default: "latest"
rollapp_wasm_ci:
description: "CI run on Rollapp-Wasm Repo"
required: false
type: string
default: "latest"

jobs:
# e2e-tests-by runs the actual go test command to trigger the test.
rollapp-evm:
strategy:
matrix:
tests:
- "e2e-test-ibc-success-evm"
- "e2e-test-ibc-timeout-evm"
- "e2e-test-ibc-grace-period-evm"
- "e2e-test-eibc-corrupted-memo-evm"
- "e2e-test-eibc-excessive-fee-evm"
- "e2e-test-eibc-fulfillment-evm"
- "e2e-test-eibc-fulfill-no-balance-evm"
- "e2e-test-eibc-fulfillment-thirdparty-evm"
- "e2e-test-eibc-pfm-evm"
- "e2e-test-eibc-timeout-evm"
- "e2e-test-transfer-multi-hop-evm"
- "e2e-test-pfm-with-grace-period-evm"
- "e2e-test-pfm-gaia-to-rollapp-evm"
- "e2e-test-batch-finalization-evm"
- "e2e-test-disconnection-evm"
- "e2e-test-rollapp-freeze-evm"
- "e2e-test-other-rollapp-not-affected-evm"
- "e2e-test-rollapp-genesis-event-evm"
- "e2e-test-delayedack-pending-packets-evm"
- "e2e-test-delayedack-relayer-down-evm"
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
ref: v0.0.1
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21.4"

- name: Download Tarball Artifact
uses: actions/download-artifact@v3
with:
name: e2e
path: /tmp

- name: Load Docker Image
run: |
docker image load -i /tmp/e2e.tar
docker image ls -a
- name: Rollapp-EVM E2E Tests
run: make ${{ matrix.tests }}
env:
DYMENSION_CI: ${{ inputs.dymension_ci }}
ROLLAPP_EVM_CI: ${{ inputs.rollapp_evm_ci }}
ROLLAPP_WASM_CI: ${{ inputs.rollapp_wasm_ci }}
68 changes: 68 additions & 0 deletions .github/workflows/e2e-test-wasm-workflow-call.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
on:
workflow_call:
inputs:
dymension_ci:
description: "CI run on Dymension Repo"
required: false
type: string
default: "latest"
rollapp_evm_ci:
description: "CI run on Rollapp-EVM Repo"
required: false
type: string
default: "latest"
rollapp_wasm_ci:
description: "CI run on Rollapp-Wasm Repo"
required: false
type: string
default: "latest"

jobs:
rollapp-wasm:
strategy:
matrix:
tests:
- "e2e-test-ibc-success-wasm"
- "e2e-test-ibc-timeout-wasm"
- "e2e-test-ibc-grace-period-wasm"
- "e2e-test-eibc-fulfillment-wasm"
- "e2e-test-eibc-fulfillment-thirdparty-wasm"
- "e2e-test-eibc-pfm-wasm"
- "e2e-test-transfer-multi-hop-wasm"
- "e2e-test-pfm-with-grace-period-wasm"
- "e2e-test-pfm-gaia-to-rollapp-wasm"
- "e2e-test-batch-finalization-wasm"
- "e2e-test-disconnection-wasm"
- "e2e-test-rollapp-freeze-wasm"
- "e2e-test-other-rollapp-not-affected-wasm"
- "e2e-test-delayedack-pending-packets-wasm"
- "e2e-test-delayedack-relayer-down-wasm"
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
ref: v0.0.1
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21.4"

- name: Download Tarball Artifact
uses: actions/download-artifact@v3
with:
name: e2e
path: /tmp

- name: Load Docker Image
run: |
docker image load -i /tmp/e2e.tar
docker image ls -a
- name: Rollapp-Wasm E2E Tests
run: make ${{ matrix.tests }}
env:
DYMENSION_CI: ${{ inputs.dymension_ci }}
ROLLAPP_EVM_CI: ${{ inputs.rollapp_evm_ci }}
ROLLAPP_WASM_CI: ${{ inputs.rollapp_wasm_ci }}
2 changes: 2 additions & 0 deletions .github/workflows/e2e-test-workflow-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
ref: v0.0.1
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -96,6 +97,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
ref: v0.0.1
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit 2b397b6

Please sign in to comment.