1- name : Fhevm Test Suite E2E Tests
1+ name : Test Suite E2E Tests
22
33on :
44 workflow_dispatch :
55 inputs :
6- core_version :
7- description : " KMS Core Version"
6+ gateway_version :
7+ description : " Gateway Image Version"
88 required : true
99 default : " "
1010 type : string
11- connector_version :
12- description : " Connector Version"
11+ host_version :
12+ description : " Host Image Version"
1313 required : true
1414 default : " "
1515 type : string
2323 required : true
2424 default : " "
2525 type : string
26- host_version :
27- description : " Host Image Version"
28- required : false
26+ connector_version :
27+ description : " Connector Version"
28+ required : true
2929 default : " "
3030 type : string
31- gateway_version :
32- description : " Gateway Image Version"
33- required : false
31+ test_suite_version :
32+ description : " Test Suite E2E Image Version"
33+ required : true
3434 default : " "
3535 type : string
36- relayer_version :
37- description : " Relayer Image Version"
36+ core_version :
37+ description : " KMS Core Version"
3838 required : true
3939 default : " "
4040 type : string
41- test_suite_version :
42- description : " Test Suite E2E Image Version"
41+ relayer_version :
42+ description : " Relayer Image Version"
4343 required : true
4444 default : " "
4545 type : string
4646 pull_request :
47+ release :
48+ types :
49+ - published
4750
4851concurrency :
4952 group : ${{ github.workflow }}-${{ github.ref }}
6871 - 'test-suite/fhevm/**'
6972 fhevm-e2e-test :
7073 needs : check-changes
71- if : ${{ needs.check-changes.outputs.changes-fhevm == 'true' || github.event_name == 'release' }}
74+ if : ${{ needs.check-changes.outputs.changes-fhevm == 'true' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
7275 permissions :
7376 contents : " read"
7477 id-token : " write"
@@ -89,17 +92,29 @@ jobs:
8992 username : ${{ github.actor }}
9093 password : ${{ secrets.GHCR_READ_TOKEN }}
9194
95+ - name : Set version from release
96+ if : github.event_name == 'release'
97+ run : |
98+ {
99+ echo "GATEWAY_VERSION=${{ github.ref_name }}"
100+ echo "HOST_VERSION=${{ github.ref_name }}"
101+ echo "COPROCESSOR_VERSION=${{ github.ref_name }}"
102+ echo "DB_MIGRATION_VERSION=${{ github.ref_name }}"
103+ echo "CONNECTOR_VERSION=${{ github.ref_name }}"
104+ echo "TEST_SUITE_VERSION=${{ github.ref_name }}"
105+ } >> "$GITHUB_ENV"
106+
92107 - name : Deploy fhevm Stack
93108 working-directory : test-suite/fhevm
94109 env :
110+ GATEWAY_VERSION : ${{ github.event_name == 'workflow_dispatch' && inputs.gateway_version || env.GATEWAY_VERSION }}
111+ HOST_VERSION : ${{ github.event_name == 'workflow_dispatch' && inputs.host_version || env.HOST_VERSION }}
112+ COPROCESSOR_VERSION : ${{ github.event_name == 'workflow_dispatch' && inputs.coprocessor_version || env.COPROCESSOR_VERSION }}
113+ DB_MIGRATION_VERSION : ${{ github.event_name == 'workflow_dispatch' && inputs.db_migration_version || env.DB_MIGRATION_VERSION }}
114+ CONNECTOR_VERSION : ${{ github.event_name == 'workflow_dispatch' && inputs.connector_version || env.CONNECTOR_VERSION }}
115+ TEST_SUITE_VERSION : ${{ github.event_name == 'workflow_dispatch' && inputs.test_suite_version || env.TEST_SUITE_VERSION }}
95116 CORE_VERSION : ${{ inputs.core_version }}
96- CONNECTOR_VERSION : ${{ inputs.connector_version }}
97- COPROCESSOR_VERSION : ${{ inputs.coprocessor_version }}
98- DB_MIGRATION_VERSION : ${{ inputs.db_migration_version }}
99- HOST_VERSION : ${{ inputs.host_version }}
100- GATEWAY_VERSION : ${{ inputs.gateway_version }}
101117 RELAYER_VERSION : ${{ inputs.relayer_version }}
102- TEST_SUITE_VERSION : ${{ inputs.test_suite_version }}
103118 run : |
104119 ./fhevm-cli deploy
105120
@@ -151,4 +166,4 @@ jobs:
151166 working-directory : test-suite/fhevm
152167 if : always()
153168 run : |
154- ./fhevm-cli clean
169+ ./fhevm-cli clean
0 commit comments