@@ -23,58 +23,58 @@ jobs:
2323 DEFAULT_CORE_REF : aptos-init
2424 runs-on : ubuntu-latest
2525 steps :
26- - name : Checkout code
27- uses : actions/checkout@v4
28-
29- - name : Get core ref from PR body
30- if : github.event_name == 'pull_request'
31- run : |
32- comment=$(echo "${{ github.event.pull_request.body }}")
33- core_ref=$(echo $comment | grep -oP 'core ref: \K\S+' || true)
34- if [ ! -z "$core_ref" ]; then
35- echo "CUSTOM_CORE_REF=${core_ref}" >> "${GITHUB_ENV}"
36- fi
37-
38- - name : Checkout chainlink repo
39- uses : actions/checkout@v4
40- with :
41- repository : smartcontractkit/chainlink
42- ref : ${{ env.CUSTOM_CORE_REF || env.DEFAULT_CORE_REF }}
43- path : temp/chainlink
44-
45- - name : Build chainlink image
46- working-directory : temp/chainlink
47- run : |
48- docker buildx build --build-arg COMMIT_SHA=$(git rev-parse HEAD) -t local_chainlink -f plugins/chainlink.Dockerfile .
49-
50- - name : Build chainlink-aptos image
51- run : |
52- docker buildx build --build-arg BASE_IMAGE=local_chainlink -t chainlink-aptos -f ./Dockerfile .
53-
54- # Clear up disk space, else we run out below:
55- # Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log'
56- - name : Flatten chainlink-aptos image
57- run : |
58- set -e
59- df -h
60- docker save chainlink-aptos:latest -o chainlink-aptos.tar
61- docker system prune -a -f
62- docker load -i chainlink-aptos.tar
63- rm -vf chainlink-aptos.tar
64- df -h
65-
66- - name : Extract Go version
67- uses : ./.github/actions/check-go-version
68- id : go-version
69-
70- - name : Set up Go
71- uses : actions/setup-go@v5
72- with :
73- go-version : ${{ env.go_version }}
74-
75- - name : Create env file
76- working-directory : ./
77- run : |
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+
29+ - name : Get core ref from PR body
30+ if : github.event_name == 'pull_request'
31+ run : |
32+ comment=$(echo "${{ github.event.pull_request.body }}")
33+ core_ref=$(echo $comment | grep -oP 'core ref: \K\S+' || true)
34+ if [ ! -z "$core_ref" ]; then
35+ echo "CUSTOM_CORE_REF=${core_ref}" >> "${GITHUB_ENV}"
36+ fi
37+
38+ - name : Checkout chainlink repo
39+ uses : actions/checkout@v4
40+ with :
41+ repository : smartcontractkit/chainlink
42+ ref : ${{ env.CUSTOM_CORE_REF || env.DEFAULT_CORE_REF }}
43+ path : temp/chainlink
44+
45+ - name : Build chainlink image
46+ working-directory : temp/chainlink
47+ run : |
48+ docker buildx build --build-arg COMMIT_SHA=$(git rev-parse HEAD) -t local_chainlink -f plugins/chainlink.Dockerfile .
49+
50+ - name : Build chainlink-aptos image
51+ run : |
52+ docker buildx build --build-arg BASE_IMAGE=local_chainlink -t chainlink-aptos -f ./Dockerfile .
53+
54+ # Clear up disk space, else we run out below:
55+ # Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log'
56+ - name : Flatten chainlink-aptos image
57+ run : |
58+ set -e
59+ df -h
60+ docker save chainlink-aptos:latest -o chainlink-aptos.tar
61+ docker system prune -a -f
62+ docker load -i chainlink-aptos.tar
63+ rm -vf chainlink-aptos.tar
64+ df -h
65+
66+ - name : Extract Go version
67+ uses : ./.github/actions/check-go-version
68+ id : go-version
69+
70+ - name : Set up Go
71+ uses : actions/setup-go@v5
72+ with :
73+ go-version : ${{ env.go_version }}
74+
75+ - name : Create env file
76+ working-directory : ./
77+ run : |
7878 cat <<EOT >> .env
7979 # Postgres config
8080 POSTGRES_IMAGE=postgres:15.2-alpine
@@ -105,43 +105,43 @@ jobs:
105105 CORE_P2P_PORT=6690
106106 EOT
107107
108- - name : Run Smoke Integration Test
109- env :
110- TEST_LOG_LEVEL : debug
111- run : |
112- set -e
113- cd integration-tests
114- # TODO: remove if scripts get fixed, see https://github.com/smartcontractkit/chainlink/commit/71f72665217bc17325c27109c107fb93b96e2607
115- echo "replace github.com/smartcontractkit/chainlink/core/scripts => ../temp/chainlink/core/scripts" >> go.mod
116- echo "replace github.com/smartcontractkit/chainlink/v2 => ../temp/chainlink" >> go.mod
117- go mod tidy
118- TEST_LOG_LEVEL=${{env.TEST_LOG_LEVEL}} go test -timeout 24h -count=1 -run TestOCR3Keystone ./smoke
119-
120- - name : Configure AWS Credentials
121- if : success()
122- uses : aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
123- with :
124- aws-region : ${{ secrets.QA_AWS_REGION }}
125- role-to-assume : ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
126- role-duration-seconds : 3600
127- mask-aws-account-id : true
128-
129- - name : Login to Amazon ECR
130- if : success()
131- id : login-ecr
132- uses : aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
133- with :
134- mask-password : " true"
135-
136- - name : Push Image to ECR
137- if : success()
138- run : |
139- docker tag chainlink-aptos ${{ env.CL_ECR }}:aptos.${{ github.sha }}
140- docker push ${{ env.CL_ECR }}:aptos.${{ github.sha }}
141-
142- - name : Upload Test Artifacts
143- if : always()
144- uses : actions/upload-artifact@v4
145- with :
146- name : smoke-test-logs
147- path : ./integration-tests/logs/
108+ - name : Run Smoke Integration Test
109+ env :
110+ TEST_LOG_LEVEL : debug
111+ run : |
112+ set -e
113+ cd integration-tests
114+ # TODO: remove if scripts get fixed, see https://github.com/smartcontractkit/chainlink/commit/71f72665217bc17325c27109c107fb93b96e2607
115+ echo "replace github.com/smartcontractkit/chainlink/core/scripts => ../temp/chainlink/core/scripts" >> go.mod
116+ echo "replace github.com/smartcontractkit/chainlink/v2 => ../temp/chainlink" >> go.mod
117+ go mod tidy
118+ TEST_LOG_LEVEL=${{env.TEST_LOG_LEVEL}} go test -timeout 24h -count=1 -run TestOCR3Keystone ./smoke
119+
120+ - name : Configure AWS Credentials
121+ if : success()
122+ uses : aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
123+ with :
124+ aws-region : ${{ secrets.QA_AWS_REGION }}
125+ role-to-assume : ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
126+ role-duration-seconds : 3600
127+ mask-aws-account-id : true
128+
129+ - name : Login to Amazon ECR
130+ if : success()
131+ id : login-ecr
132+ uses : aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
133+ with :
134+ mask-password : " true"
135+
136+ - name : Push Image to ECR
137+ if : success()
138+ run : |
139+ docker tag chainlink-aptos ${{ env.CL_ECR }}:aptos.${{ github.sha }}
140+ docker push ${{ env.CL_ECR }}:aptos.${{ github.sha }}
141+
142+ - name : Upload Test Artifacts
143+ if : always()
144+ uses : actions/upload-artifact@v4
145+ with :
146+ name : smoke-test-logs
147+ path : ./integration-tests/logs/
0 commit comments