Skip to content

Commit

Permalink
try GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Nov 13, 2023
1 parent f77d418 commit 33477da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/automation-benchmark-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,17 @@ jobs:
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
suites: benchmark load/automationv2_1
- name: Run Tests
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@7d541cbbca52d45b8a718257af86d9cf49774d1f # v2.2.15
env:
DETACH_RUNNER: true
TEST_SUITE: benchmark
DETACH_RUNNER: false
TEST_SUITE: automationv2_1
TEST_ARGS: -test.timeout 720h
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests:${{ github.sha }}
INTERNAL_DOCKER_REPO: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com
with:
test_command_to_run: cd integration-tests && go test -timeout 30m -v -run ^TestAutomationBenchmark$ ./benchmark -count=1
test_command_to_run: cd integration-tests && go test -timeout 30m -v -run TestLogTrigger ./load/automationv2_1 -count=1
test_download_vendor_packages_command: make gomod
cl_repo: ${{ inputs.chainlinkImage }}
cl_image_tag: ${{ inputs.chainlinkVersion }}
Expand Down
9 changes: 6 additions & 3 deletions integration-tests/load/automationv2_1/automationv2_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ func TestLogTrigger(t *testing.T) {
PreventPodEviction: true,
})

if testEnvironment.WillUseRemoteRunner() {
key := "TEST_INPUTS"
err := os.Setenv(fmt.Sprintf("TEST_%s", key), os.Getenv(key))
require.NoError(t, err, "failed to set the environment variable TEST_INPUTS for remote runner")
}

testEnvironment.
AddHelm(ethereum.New(&ethereum.Props{
NetworkName: testNetwork.Name,
Expand All @@ -133,9 +139,6 @@ func TestLogTrigger(t *testing.T) {
require.NoError(t, err, "Error launching test environment")

if testEnvironment.WillUseRemoteRunner() {
key := "TEST_INPUTS"
err := os.Setenv(fmt.Sprintf("TEST_%s", key), os.Getenv(key))
require.NoError(t, err, "failed to set the environment variable TEST_INPUTS for remote runner")
return
}

Expand Down

0 comments on commit 33477da

Please sign in to comment.