Skip to content

Commit

Permalink
ci(tests): support e2e tests with specific versions of deps
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Oct 6, 2023
1 parent 3994205 commit 4d54e4b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci_e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ on:
- reopened
- synchronize
- ready_for_review
# this is useful to trigger test from PRs, or even manually with specific commits/tags
workflow_dispatch:
inputs:
geth_commit:
description: "go-ethereum commit/tag to use"
type: string
default: ''
required: false
ethermint_commit:
description: "ethermint commit/tag to use"
type: string
default: ''
required: false
fhevm_solidity_commit:
description: "fhevm_solidity commit/tag to use"
type: string
default: ''
required: false

jobs:
docker:
Expand Down Expand Up @@ -37,6 +55,21 @@ jobs:
echo "FHEVM_SOLIDITY_VERSION=$(./scripts/get_version_from_makefile.sh FHEVM_SOLIDITY_VERSION)" >> $GITHUB_ENV
echo "ETHERMINT_VERSION=$(./scripts/get_module_version.sh go.mod zama.ai/ethermint)" >> $GITHUB_ENV
echo "GO_ETHEREUM_VERSION=$(./scripts/get_module_version.sh go.mod zama.ai/go-ethereum)" >> $GITHUB_ENV
# this overrides the previous geth version
- name: Set go-ethereum version if specified
if: github.event_name != 'workflow_dispatch' && github.event.inputs.geth_commit != ''
run: echo "GO_ETHEREUM_VERSION=${{ github.event.inputs.geth_commit }}" >> $GITHUB_ENV

# this overrides the previous ethermint version
- name: Set ethermint version if specified
if: github.event_name != 'workflow_dispatch' && github.event.inputs.ethermint_commit != ''
run: echo "ETHERMINT_VERSION=${{ github.event.inputs.ethermint_commit }}" >> $GITHUB_ENV

# this overrides the previous fhevm_solidity version
- name: Set fhevm_solidity version if specified
if: github.event_name != 'workflow_dispatch' && github.event.inputs.fhevm_solidity_commit != ''
run: echo "FHEVM_SOLIDITY_VERSION=${{ github.event.inputs.fhevm_solidity_commit }}" >> $GITHUB_ENV

- name: Echo versions parsed from Makefile and go.mod
run: |
Expand Down

0 comments on commit 4d54e4b

Please sign in to comment.