@@ -104,6 +104,9 @@ jobs:
104104 pull-requests : write
105105 runs-on : ${{ matrix.runner }}
106106 if : needs.resolve-chainlink-image.result == 'success'
107+ environment :
108+ name : " integration"
109+ deployment : false
107110 strategy :
108111 fail-fast : false
109112 matrix :
@@ -314,66 +317,52 @@ jobs:
314317 tests_dir : " logpoller"
315318 logs_archive_name : " logpoller-finality-tag"
316319 steps :
317- - name : Check if job should run
318- id : gate
319- working-directory : .
320- run : |
321- if [[ "${{ github.event_name }}" == "pull_request" && "${{ matrix.run_on_pr }}" == "false" ]]; then
322- echo "should_run=false" >> "$GITHUB_OUTPUT"
323- echo "Skipping ${{ matrix.display_name }} on PR"
324- else
325- echo "should_run=true" >> "$GITHUB_OUTPUT"
326- fi
327-
328320 - name : Checkout code
329- if : steps.gate.outputs.should_run == 'true'
330321 uses : actions/checkout@v6
331322 with :
332323 ref : ${{ inputs.chainlink_version }}
333324 fetch-depth : 0
334325
335326 - name : Set up Docker Buildx
336- if : steps.gate.outputs.should_run == 'true'
337327 uses : docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
338328
339329 - name : Install Just
340- if : steps.gate.outputs.should_run == 'true'
341330 uses : extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3
342331 with :
343332 just-version : " 1.40.0"
344333
345- - name : Configure AWS credentials using OIDC
346- if : steps.gate.outputs.should_run == 'true'
347- uses : aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
334+ - name : Configure AWS Credentials
335+ uses : aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
348336 with :
349- role-to-assume : ${{ secrets.AWS_OIDC_IAM_ROLE_SDLC_ECR_READONLY_ARN }}
350- aws-region : us-west-2
337+ aws-region : ${{ secrets.QA_AWS_REGION }}
338+ role-to-assume : ${{ secrets.AWS_CTF_READ_ACCESS_ROLE_ARN }}
339+ role-duration-seconds : 1800
340+ mask-aws-account-id : true
351341
352- - name : Authenticate to ECR
353- if : steps.gate.outputs.should_run == 'true'
342+ - name : Login to Amazon ECR
354343 id : login-ecr
355344 uses : aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
345+ with :
346+ registries : ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
347+ env :
348+ AWS_REGION : ${{ secrets.QA_AWS_REGION }}
356349
357350 - name : Set up Go
358- if : steps.gate.outputs.should_run == 'true'
359351 uses : actions/setup-go@v6 # v6
360352 with :
361353 cache : true
362354 go-version-file : devenv/go.mod
363355 cache-dependency-path : devenv/go.sum
364356
365357 - name : Download Go dependencies
366- if : steps.gate.outputs.should_run == 'true'
367358 run : |
368359 go mod download
369360
370361 - name : Set environment variables
371- if : steps.gate.outputs.should_run == 'true'
372362 run : |
373363 echo "CHAINLINK_IMAGE=${{ needs.resolve-chainlink-image.outputs.resolved-image }}" >> $GITHUB_ENV
374364
375365 - name : Setup environment
376- if : steps.gate.outputs.should_run == 'true'
377366 env :
378367 FAKE_SERVER_IMAGE : ${{ secrets.FAKE_SERVER_IMAGE }}
379368 run : |
@@ -383,7 +372,6 @@ jobs:
383372 eval $ENV_CMD
384373
385374 - name : Run tests
386- if : steps.gate.outputs.should_run == 'true'
387375 working-directory : devenv/tests/${{ matrix.tests_dir }}
388376 env :
389377 CURRENT_TEST : ${{ matrix.testcmd }}
@@ -393,7 +381,6 @@ jobs:
393381 eval $TESTCMD
394382
395383 - name : Upload Logs
396- if : always() && steps.gate.outputs.should_run == 'true'
397384 uses : actions/upload-artifact@v4
398385 with :
399386 name : container-logs-${{ matrix.logs_archive_name }}
0 commit comments