@@ -232,6 +232,35 @@ jobs:
232232 - name : Delete default runner images
233233 run : |
234234 rm -rf /usr/share/swift/
235+ - name: Checkout Ocean CLI
236+ uses: actions/checkout@v4
237+ with:
238+ repository: 'oceanprotocol/ocean-cli'
239+ path: 'ocean-cli'
240+ - name : Checkout Ocean-js
241+ uses : actions/checkout@v4
242+ with :
243+ repository : ' oceanprotocol/ocean.js'
244+ path : ' ocean.js'
245+ ref : main
246+ - name : Build ocean-js
247+ working-directory : ${{ github.workspace }}/ocean.js
248+ run : |
249+ npm ci
250+ npm run build
251+ npm link
252+ - name : Setup Ocean CLI
253+ working-directory : ${{ github.workspace }}/ocean-cli
254+ run : |
255+ npm ci
256+ npm link @oceanprotocol/lib
257+ npm run build
258+ - name : Checkout Ocean Node
259+ uses : actions/checkout@v4
260+ with :
261+ repository : ' oceanprotocol/ocean-node'
262+ path : ' ocean-node'
263+ ref : ${{ github.event_name == 'pull_request' && github.head_ref || 'main' }}
235264
236265 - name : Wait for contracts deployment and C2D cluster to be ready
237266 working-directory : ${{ github.workspace }}/barge
@@ -245,12 +274,6 @@ jobs:
245274 run : docker logs ocean-contracts-1 && docker logs ocean-typesense-1
246275 if : ${{ failure() }}
247276
248- - name : Checkout Ocean Node
249- uses : actions/checkout@v4
250- with :
251- repository : ' oceanprotocol/ocean-node'
252- path : ' ocean-node'
253- ref : ${{ github.event_name == 'pull_request' && github.head_ref || 'main' }}
254277 - name : Set DOCKER_REGISTRY_AUTHS from Docker Hub secrets
255278 if : env.DOCKERHUB_USERNAME && env.DOCKERHUB_PASSWORD
256279 run : |
@@ -303,33 +326,6 @@ jobs:
303326 done
304327 echo "Ocean Node did not start in time"
305328 exit 1
306- - name : Checkout Ocean CLI
307- uses : actions/checkout@v4
308- with :
309- repository : ' oceanprotocol/ocean-cli'
310- path : ' ocean-cli'
311- - name : Set up Node.js
312- uses : actions/setup-node@v4
313- with :
314- node-version : ' v20.19.0'
315- - name : Checkout Ocean-js
316- uses : actions/checkout@v4
317- with :
318- repository : ' oceanprotocol/ocean.js'
319- path : ' ocean.js'
320- ref : main
321- - name : Build ocean-js
322- working-directory : ${{ github.workspace }}/ocean.js
323- run : |
324- npm ci
325- npm run build
326- npm link
327- - name : Setup Ocean CLI
328- working-directory : ${{ github.workspace }}/ocean-cli
329- run : |
330- npm ci
331- npm link @oceanprotocol/lib
332- npm run build
333329 - name : Run system tests
334330 working-directory : ${{ github.workspace }}/ocean-cli
335331 run : npm run test:system
0 commit comments