From c5cf28cdb27989d8397bc8002638ca4920581b75 Mon Sep 17 00:00:00 2001 From: youben11 Date: Wed, 13 Dec 2023 08:22:16 +0100 Subject: [PATCH] ci: trigger e2e tests on ethermint on PRs --- .github/workflows/tests.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b426a7e..e52aa51 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,3 +32,16 @@ jobs: - name: Run tests run: make test + + - name: Run e2e tests in ethermint with current branch + if: github.event_name == 'pull_request' + shell: bash + env: + SECRET_TOKEN: ${{ secrets.CONCRETE_ACTIONS_TOKEN }} + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $SECRET_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/zama-ai/zbc-ethermint/actions/workflows/run-ci-e2e-test.yml/dispatches \ + -d '{"ref":"main","inputs":{"fhevm_go_commit":"${{ github.event.pull_request.head.sha }}"}}'