Skip to content

Commit

Permalink
Added additional job to change name if run is scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Jun 27, 2023
1 parent 53007af commit e336cf9
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/e2e_custom_cl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
default: develop
type: string
schedule:
- cron: '0 11 45 * *'
- cron: '0 20 * * *'
env:
CL_ECR: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink
ENV_JOB_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-solana-tests:${{ github.sha }}
Expand Down Expand Up @@ -131,16 +131,29 @@ jobs:
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}

setup_job_name:
runs-on: ubuntu-latest
outputs:
job_name: ${{ steps.set_job_name.outputs.job_name }}
steps:
- name: Set job name
id: set_job_name
run: |
if [[ "${{ github.event_name }}" == "schedule" ]]; then
echo "::set-output name=job_name::Scheduled E2E Custom Run Smoke Tests"
else
echo "::set-output name=job_name::E2E Custom Run Smoke Tests"
fi
e2e_custom_run_smoke_tests:
name: ${{ github.event_name == 'schedule' ? 'Scheduled E2E Custom Run Smoke Tests':'E2E Custom Run Smoke Tests' }}
name: ${{ needs.setup.outputs.job_name }}
environment: integration
permissions:
checks: write
pull-requests: write
id-token: write
contents: read
runs-on: ubuntu-latest
needs: [e2e_custom_build_artifacts, e2e_custom_build_custom_chainlink_image, build_test_image]
needs: [setup, e2e_custom_build_artifacts, e2e_custom_build_custom_chainlink_image, build_test_image]
env:
TEST_SUITE: smoke
TEST_ARGS: -test.timeout 30m
Expand Down

0 comments on commit e336cf9

Please sign in to comment.