@@ -96,47 +96,71 @@ jobs:
9696 name : integration
9797 deployment : false
9898 outputs :
99- general-changes : ${{ steps.changes.outputs.general_changes }}
100- core-changes : ${{ steps.changes.outputs.core_changes }}
101- cre-changes : ${{ steps.changes.outputs.cre_changes }}
102- ccip-changes : ${{ steps.changes.outputs.ccip_changes }}
99+ cre-e2e : ${{ steps.advanced-triggers.outputs.cre-e2e }}
100+ core-e2e : ${{ steps.advanced-triggers.outputs.core-e2e }}
101+ ccip-e2e : ${{ steps.advanced-triggers.outputs.ccip-e2e }}
103102 steps :
104103 - name : Checkout the repo
105- uses : actions/checkout@v4
104+ uses : actions/checkout@v6
106105 with :
107106 persist-credentials : false
108107 repository : smartcontractkit/chainlink
109108 ref : ${{ inputs.cl_ref }}
110109
111- - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
112- id : changes
110+ - name : Advanced Triggers
111+ uses : smartcontractkit/.github/actions/advanced-triggers@advanced-triggers/v1
112+ id : advanced-triggers
113113 with :
114- filters : |
115- general_changes:
116- - '.github/workflows/integration-tests.yml'
117- - '.github/workflows/run-e2e-tests-reusable-workflow.yml'
118- - '.github/workflows/cre-system-tests.yaml'
119- - '.github/e2e-tests.yml'
120- - 'GNUmakefile'
121- - 'core/chainlink.Dockerfile'
122- - 'plugins/chainlink.Dockerfile'
123- core_changes: &core_changes
124- - '**/*.go'
125- - '**/*go.sum'
126- - '**/*go.mod'
127- - '**/*Dockerfile'
128- - 'core/**/migrations/*.sql'
129- - 'core/**/config/**/*.toml'
130- - 'integration-tests/**/*.toml'
131- cre_changes:
132- - *core_changes
133- - 'core/scripts/cre/environment/**/*'
134- - 'system-tests/**'
135- - 'plugins/plugins.private.yaml'
136- - 'plugins/plugins.public.yaml'
137- ccip_changes:
138- - '**/*ccip*'
139- - '**/*ccip*/**'
114+ file-sets : |
115+ go-files:
116+ - "**/*.go"
117+ - "**/go.mod"
118+ - "**/go.sum"
119+ core-files:
120+ - "GNUmakefile"
121+ - "core/**/*.go"
122+ - "core/**/migrations/*.sql"
123+ - "core/**/config/**/*.toml"
124+ workflow-files:
125+ - ".github/workflows/integration-tests.yml"
126+ - ".github/actions/**/*.y*ml"
127+ docker-files:
128+ - "**/*Dockerfile"
129+ - "plugins/plugins.public.yaml"
130+ - "plugins/plugins.private.yaml"
131+ legacy-integ-test-files:
132+ - "integration-tests/**"
133+ - ".github/e2e-tests.yml"
134+ system-test-files:
135+ - "system-tests/**"
136+ - "core/scripts/cre/**"
137+ - ".github/workflows/cre-system-tests.yaml"
138+ - ".github/workflows/cre-regression-system-tests.yaml"
139+ core-test-files:
140+ - "testdata/**"
141+ - "core/**/testdata/**"
142+ - "core/**/*_test.go"
143+ deployment-test-files:
144+ - "deployment/**/*_test.go"
145+ - "deployment/**/testdata/**"
146+ triggers : |
147+ cre-e2e:
148+ exclusion-sets: [ core-test-files, deployment-test-files, legacy-integ-test-files ]
149+ inclusion-sets: [ go-files, core-files, workflow-files, docker-files, system-test-files ]
150+ paths:
151+ - "!deployment/**"
152+ core-e2e: # also triggers solana tests
153+ exclusion-sets: [ core-test-files, deployment-test-files, system-test-files ]
154+ inclusion-sets: [ go-files, core-files, workflow-files, docker-files, legacy-integ-test-files ]
155+ paths:
156+ - "!deployment/**"
157+ ccip-e2e:
158+ exclusion-sets: [ core-test-files, deployment-test-files, system-test-files ]
159+ inclusion-sets: [ go-files, core-files, workflow-files, docker-files, legacy-integ-test-files ]
160+ paths:
161+ - "!deployment/**"
162+ - "**/*ccip*"
163+ - "**/*ccip*/**"
140164
141165 labels :
142166 name : Get PR labels and set runner labels
@@ -312,7 +336,7 @@ jobs:
312336 env :
313337 GITHUB_EVENT_NAME : ${{ github.event_name }}
314338 GITHUB_REF_TYPE : ${{ github.ref_type }}
315- CONTAINS_CHANGES : ${{ needs.changes.outputs.general-changes == 'true' || needs.changes.outputs. cre-changes == 'true' }}
339+ CONTAINS_CHANGES : ${{ needs.changes.outputs.cre-e2e }}
316340 RUN_E2E_TESTS_LABEL_FOUND : ${{ needs.labels.outputs.run-e2e-tests-label-found }}
317341 run : |
318342 SHOULD_RUN="false"
@@ -420,7 +444,7 @@ jobs:
420444 env :
421445 GITHUB_EVENT_NAME : ${{ github.event_name }}
422446 GITHUB_REF_TYPE : ${{ github.ref_type }}
423- CONTAINS_CHANGES : ${{ needs.changes.outputs.general-changes == 'true' || needs.changes.outputs. core-changes == 'true' }}
447+ CONTAINS_CHANGES : ${{ needs.changes.outputs.core-e2e }}
424448 RUN_E2E_TESTS_LABEL_FOUND : ${{ needs.labels.outputs.run-e2e-tests-label-found || 'false' }}
425449 run : |
426450 if [[ "${GITHUB_EVENT_NAME}" == 'pull_request' ]]; then
@@ -519,7 +543,7 @@ jobs:
519543 env :
520544 GITHUB_EVENT_NAME : ${{ github.event_name }}
521545 GITHUB_REF_TYPE : ${{ github.ref_type }}
522- CONTAINS_CHANGES : ${{ needs.changes.outputs.general-changes == 'true' || needs.changes.outputs.core-changes == 'true' }}
546+ CONTAINS_CHANGES : ${{ needs.changes.outputs.ccip-e2e }}
523547 RUN_E2E_TESTS_LABEL_FOUND : ${{ needs.labels.outputs.run-e2e-tests-label-found || 'false' }}
524548 run : |
525549 if [[ "${GITHUB_EVENT_NAME}" == 'pull_request' ]]; then
@@ -740,7 +764,7 @@ jobs:
740764 env :
741765 GITHUB_EVENT_NAME : ${{ github.event_name }}
742766 GITHUB_REF_TYPE : ${{ github.ref_type }}
743- CONTAINS_CHANGES : ${{ needs.changes.outputs.general-changes == 'true' || needs.changes.outputs. core-changes == 'true' }}
767+ CONTAINS_CHANGES : ${{ needs.changes.outputs.core-e2e }}
744768 RUN_E2E_TESTS_LABEL_FOUND : ${{ needs.labels.outputs.run-e2e-tests-label-found || 'false' }}
745769 INPUTS_RUN_SOLANA : ${{ inputs.run_solana }}
746770 run : |
0 commit comments