From fdaf56b1df7248d18e30ad09982d03ec67d6b71c Mon Sep 17 00:00:00 2001 From: Lukasz <120112546+lukaszcl@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:35:34 +0200 Subject: [PATCH] Use citool from ctf in run-tests GHA (#190) --- chainlink-testing-framework/run-tests/action.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/chainlink-testing-framework/run-tests/action.yml b/chainlink-testing-framework/run-tests/action.yml index 6f766c6..c4a2f08 100644 --- a/chainlink-testing-framework/run-tests/action.yml +++ b/chainlink-testing-framework/run-tests/action.yml @@ -328,12 +328,18 @@ runs: shell: bash run: go run ${{ github.action_path }}/mask-testsecrets/main.go "${{ inputs.test_secrets_override_base64 }}" + - name: Checkout chainlink-testing-framework to use citool + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + with: + repository: smartcontractkit/chainlink-testing-framework + ref: main + fetch-depth: 0 + path: ctf + - name: Create default test config override if: inputs.test_config_override_base64 == '' shell: bash run: | - cd integration-tests/citool/ - create_args=() if [ -n "${{ inputs.test_config_chainlink_version }}" ]; then create_args+=(--chainlink-version="${{ inputs.test_config_chainlink_version }}") @@ -369,6 +375,8 @@ runs: create_args+=(--selected-networks="$i") done + cd ctf/tools/citool/ + config_override=$(go run main.go test-config create "${create_args[@]}") BASE64_CONFIG_OVERRIDE=$(echo "$config_override" | base64 -w 0)