1717 - uses : actions/checkout@v4
1818 - uses : actions/setup-node@v4
1919 with :
20- node-version : ' v20.16 .0'
20+ node-version : ' v20.19 .0'
2121 - name : Cache node_modules
2222 uses : actions/cache@v3
2323 env :
4242 fail-fast : false
4343 matrix :
4444 os : [ubuntu-latest]
45- node : ['18.20.4', 'v20.16 .0', 'v22.5.1']
45+ node : ['18.20.4', 'v20.19 .0', 'v22.5.1']
4646
4747 steps :
4848 - uses : actions/checkout@v4
6666 - uses : actions/checkout@v4
6767 - uses : actions/setup-node@v4
6868 with :
69- node-version : ' v20.16 .0'
69+ node-version : ' v20.19 .0'
7070 - name : Cache node_modules
7171 uses : actions/cache@v3
7272 env :
@@ -100,7 +100,7 @@ jobs:
100100 - uses : actions/checkout@v4
101101 - uses : actions/setup-node@v4
102102 with :
103- node-version : ' v20.16 .0'
103+ node-version : ' v20.19 .0'
104104 - name : Cache node_modules
105105 uses : actions/cache@v3
106106 env :
@@ -125,28 +125,30 @@ jobs:
125125 DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
126126 - name : Run Barge
127127 working-directory : ${{ github.workspace }}/barge
128+ env :
129+ CONTRACTS_VERSION : escrow
128130 run : |
129- bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with- typesense 2>&1 > start_ocean.log &
131+ bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
130132 - run : npm ci
131133 - run : npm run build
132134 - run : docker image ls
133135 - name : Delete default runner images
134136 run : |
135137 rm -rf /usr/share/swift/
136- - name : Wait for contracts deployment and C2D cluster to be ready
138+ - name : Wait for contracts deployment
137139 working-directory : ${{ github.workspace }}/barge
138140 run : |
139141 for i in $(seq 1 250); do
140- sleep 10
141- [ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
142+ sleep 5
143+ [ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
142144 done
143145 - name : docker logs
144- run : docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean- typesense-1
146+ run : docker logs ocean-ocean-contracts-1 && docker logs ocean-typesense-1
145147 if : ${{ failure() }}
146148 - name : integration tests
147149 run : npm run test:integration:cover
148150 env :
149- OPERATOR_SERVICE_URL : ' ["http://172.15.0.13:31000"]'
151+ # OPERATOR_SERVICE_URL: '["http://172.15.0.13:31000"]'
150152 PRIVATE_KEY : ${{ secrets.NODE1_PRIVATE_KEY }}
151153 NODE1_PRIVATE_KEY : ${{ secrets.NODE1_PRIVATE_KEY }}
152154 NODE2_PRIVATE_KEY : ${{ secrets.NODE2_PRIVATE_KEY }}
@@ -178,7 +180,7 @@ jobs:
178180 - name : Set up Node.js
179181 uses : actions/setup-node@v4
180182 with :
181- node-version : ' v20.16 .0'
183+ node-version : ' v20.19 .0'
182184
183185 - name : Cache node_modules
184186 uses : actions/cache@v3
@@ -210,8 +212,9 @@ jobs:
210212 - name : Run Barge
211213 working-directory : ${{ github.workspace }}/barge
212214 run : |
213- bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-c2d --with-typesense 2>&1 > start_ocean.log &
214-
215+ bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
216+ env :
217+ CONTRACTS_VERSION : escrow
215218 - run : npm ci
216219 - run : npm run build
217220 - run : docker image ls
@@ -224,7 +227,7 @@ jobs:
224227 run : |
225228 for i in $(seq 1 250); do
226229 sleep 10
227- [ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
230+ [ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
228231 done
229232
230233 - name : docker logs
@@ -287,22 +290,24 @@ jobs:
287290 - name : Run system tests
288291 working-directory : ${{ github.workspace }}/ocean-cli
289292 run : npm run test:system
293+ env :
294+ AVOID_LOOP_RUN : true
290295
291- dashboard_build :
296+ control_panel_build :
292297 runs-on : ubuntu-latest
293298 steps :
294299 - uses : actions/checkout@v4
295300 - uses : actions/setup-node@v4
296301 with :
297- node-version : ' v20.16 .0'
302+ node-version : ' v20.19 .0'
298303 - name : Cache node_modules
299304 uses : actions/cache@v3
300305 env :
301306 cache-name : cache-node-modules
302307 with :
303308 path : ~/.npm
304- key : ${{ runner.os }}-dashboard -${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
305- restore-keys : ${{ runner.os }}-dashboard -${{ env.cache-name }}-
309+ key : ${{ runner.os }}-control-panel -${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
310+ restore-keys : ${{ runner.os }}-control-panel -${{ env.cache-name }}-
306311 - run : npm ci
307- - name : Run dashboard build test
308- run : npm run test:dashboard
312+ - name : Build control panel
313+ run : npm run build:controlpanel
0 commit comments