1- name : ' CI '
1+ name : " CI "
22
33on :
44 pull_request :
1212 - uses : actions/checkout@v3
1313 - uses : actions/setup-node@v4
1414 with :
15- node-version : ' 20 '
15+ node-version : " 22 "
1616 - name : Cache node_modules
1717 uses : actions/cache@v4
1818 env :
3131 - uses : actions/checkout@v3
3232 - uses : actions/setup-node@v4
3333 with :
34- node-version : ' 20 '
34+ node-version : " 22 "
3535 - name : Cache node_modules
3636 uses : actions/cache@v4
3737 env :
4747 - name : Checkout Barge
4848 uses : actions/checkout@v3
4949 with :
50- repository : ' oceanprotocol/barge'
51- path : ' barge'
50+ repository : " oceanprotocol/barge"
51+ path : " barge"
5252
5353 - name : Set Database Environment Variables
5454 run : |
6060 - name : Run Ganache with Barge
6161 working-directory : ${{ github.workspace }}/barge
6262 run : |
63- bash -x start_ocean.sh --with-typesense 2>&1 > start_ocean.log &
63+ bash -x start_ocean.sh 2>&1 > start_ocean.log &
6464
6565 - name : Install deps & build
6666 run : npm ci && npm run build:metadata
7878 if [ $attempt -eq $max_attempts ]; then
7979 echo "Error: Node container failed to start within 300 seconds"
8080 docker ps -a
81- docker inspect ocean-node-1
81+ docker inspect ocean-node-1 || true
82+ echo "=== Barge startup script output ==="
83+ cat ${{ github.workspace }}/barge/start_ocean.log || true
84+ echo "=== Ocean Node Logs ==="
85+ docker logs ocean-node-1 2>&1 | tail -100 || true
8286 exit 1
8387 fi
8488 sleep 10
@@ -91,13 +95,23 @@ jobs:
9195 path : coverage/
9296
9397 test_integration :
98+ name : test_integration (${{ matrix.transport }})
9499 runs-on : ubuntu-latest
95100
101+ strategy :
102+ fail-fast : false
103+ matrix :
104+ include :
105+ - transport : http
106+ node_endpoint : " http://127.0.0.1:8001"
107+ - transport : p2p
108+ node_endpoint : " 16Uiu2HAmRkJeRYRghP3ETQCpdz8NsQzQE9RpSST7i5YNgWqH4dVE"
109+
96110 steps :
97111 - uses : actions/checkout@v3
98112 - uses : actions/setup-node@v4
99113 with :
100- node-version : ' 20 '
114+ node-version : " 22 "
101115 - name : Cache node_modules
102116 uses : actions/cache@v4
103117 env :
@@ -115,8 +129,8 @@ jobs:
115129 - name : Checkout Barge
116130 uses : actions/checkout@v3
117131 with :
118- repository : ' oceanprotocol/barge'
119- path : ' barge'
132+ repository : " oceanprotocol/barge"
133+ path : " barge"
120134
121135 - name : Login to Docker Hub
122136 if : ${{ env.DOCKERHUB_PASSWORD && env.DOCKERHUB_USERNAME }}
@@ -136,7 +150,7 @@ jobs:
136150 - name : Run Barge
137151 working-directory : ${{ github.workspace }}/barge
138152 run : |
139- bash -x start_ocean.sh --with-typesense 2>&1 > start-node.log &
153+ bash -x start_ocean.sh 2>&1 > start-node.log &
140154
141155 - name : Install deps & build
142156 run : npm ci && npm run build:metadata
@@ -170,15 +184,23 @@ jobs:
170184 attempt=$((attempt + 1))
171185 done
172186
173- - name : integration
174- run : npm run test:integration:cover
187+ - name : integration (${{ matrix.transport }})
188+ run : |
189+ if [ "${{ matrix.transport }}" = "http" ]; then
190+ npm run test:integration:cover
191+ else
192+ npm run test:integration
193+ fi
175194 env :
176195 INDEXING_RETRY_INTERVAL : 4000
177196 INDEXING_MAX_RETRIES : 120
178- NODE_URL : ' http://127.0.0.1:8001 '
197+ NODE_ENDPOINT : ${{ matrix.node_endpoint }}
179198
180199 - name : docker logs
181200 run : |
201+ echo "=== Barge startup script output ==="
202+ cat ${{ github.workspace }}/barge/start-node.log || true
203+ echo ""
182204 echo "=== Ocean Contracts Logs ==="
183205 docker logs ocean-ocean-contracts-1 2>&1 || echo "Container not found"
184206 echo ""
@@ -187,6 +209,7 @@ jobs:
187209 if : ${{ failure() }}
188210
189211 - name : Upload coverage
212+ if : matrix.transport == 'http'
190213 uses : actions/upload-artifact@v4
191214 with :
192215 name : coverage-integration
@@ -199,7 +222,7 @@ jobs:
199222 fail-fast : false
200223 matrix :
201224 os : [ubuntu-latest, macos-latest, windows-latest]
202- node : ['20', '18' ]
225+ node : ["22", "20" ]
203226
204227 steps :
205228 - uses : actions/checkout@v3
@@ -237,13 +260,13 @@ jobs:
237260 - uses : actions/checkout@v3
238261 - uses : actions/setup-node@v4
239262 with :
240- node-version : ' 20 '
263+ node-version : " 22 "
241264
242265 - name : checkout ocean.js repo
243266 uses : actions/checkout@v3
244267 with :
245- repository : ' oceanprotocol/ocean.js'
246- path : ' ocean.js'
268+ repository : " oceanprotocol/ocean.js"
269+ path : " ocean.js"
247270 ref : ${{ github.event.pull_request.head.sha }}
248271
249272 - name : setup git config
0 commit comments