Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(tests): support e2e tests with specific versions of deps #213

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading