From 2b397b6ae0e573627fee955990f53b63fae3e8dd Mon Sep 17 00:00:00 2001 From: anhductn2001 Date: Tue, 13 Aug 2024 17:37:12 +0700 Subject: [PATCH] workflow call --- .../workflows/e2e-test-evm-workflow-call.yml | 74 +++++++++++++++++++ .../workflows/e2e-test-wasm-workflow-call.yml | 68 +++++++++++++++++ .github/workflows/e2e-test-workflow-call.yml | 2 + 3 files changed, 144 insertions(+) create mode 100644 .github/workflows/e2e-test-evm-workflow-call.yml create mode 100644 .github/workflows/e2e-test-wasm-workflow-call.yml diff --git a/.github/workflows/e2e-test-evm-workflow-call.yml b/.github/workflows/e2e-test-evm-workflow-call.yml new file mode 100644 index 00000000..510a0089 --- /dev/null +++ b/.github/workflows/e2e-test-evm-workflow-call.yml @@ -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 }} diff --git a/.github/workflows/e2e-test-wasm-workflow-call.yml b/.github/workflows/e2e-test-wasm-workflow-call.yml new file mode 100644 index 00000000..beb8ea92 --- /dev/null +++ b/.github/workflows/e2e-test-wasm-workflow-call.yml @@ -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 }} diff --git a/.github/workflows/e2e-test-workflow-call.yml b/.github/workflows/e2e-test-workflow-call.yml index fb66e5e3..f7400838 100644 --- a/.github/workflows/e2e-test-workflow-call.yml +++ b/.github/workflows/e2e-test-workflow-call.yml @@ -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: @@ -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: