Skip to content

Commit

Permalink
add support for team input and CHAINLINK_USER_TEAM env var in reusabl…
Browse files Browse the repository at this point in the history
…e e2e tests (#733)

Signed-off-by: Bartek Tofel <[email protected]>
  • Loading branch information
Tofel authored Nov 28, 2024
1 parent 5711255 commit 0d4a2b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ on:
required: false
type: boolean
default: false
team:
description: "Team to run the tests for (e.g. BIX, CCIP)"
required: false
type: string
outputs:
test_results:
description: "Test results from all executed tests"
Expand Down Expand Up @@ -254,6 +258,7 @@ env:
${{ inputs.slack_notification_after_tests_channel_id || inputs.SLACK_CHANNEL
|| secrets.SLACK_CHANNEL }}
SLACK_USER: ${{ inputs.SLACK_USER }}
CHAINLINK_USER_TEAM: ${{ inputs.team }}
E2E_JD_IMAGE:
${{ secrets.PROD_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{
secrets.AWS_REGION}}.amazonaws.com/job-distributor
Expand Down Expand Up @@ -448,6 +453,14 @@ jobs:
fi
shell: bash

- name: Check if team is required
if: ${{ steps.check-matrices.outputs.run-k8s-tests == 'true' }}
run: |
if [[ -z "${{ inputs.team }}" ]]; then
echo "Team is required for k8s tests"
exit 1
fi
- name: Check if test secrets are required for any test
shell: bash
run: |
Expand Down

0 comments on commit 0d4a2b2

Please sign in to comment.