@@ -103,23 +103,24 @@ jobs:
103103 strategy :
104104 matrix :
105105 os : [ubuntu-22.04]
106+ bacalhau_version : [1.0.3, 1.1.0]
106107 runs-on : ${{ matrix.os }}
107108 environment : ci
108109 steps :
109110 - name : Download bacalhau
110111 run : |
111112 # Download bacalhau plugin
112113 if [[ "$OSTYPE" == "linux-gnu"* ]]; then
113- curl -sSL https://github.com/bacalhau-project/bacalhau/releases/download/v1.0.3/bacalhau_v1.0.3_linux_amd64 .tar.gz -o bacalhau.tgz
114+ curl -sSL https://github.com/bacalhau-project/bacalhau/releases/download/v${{ matrix.bacalhau_version }}/bacalhau_v${{ matrix.bacalhau_version }}_linux_amd64 .tar.gz -o bacalhau.tgz
114115 elif [[ "$OSTYPE" == "darwin"* ]]; then
115- curl -sSL https://github.com/bacalhau-project/bacalhau/releases/download/v1.0.3/bacalhau_v1.0.3_darwin_arm64 .tar.gz -o bacalhau.tgz
116+ curl -sSL https://github.com/bacalhau-project/bacalhau/releases/download/v${{ matrix.bacalhau_version }}/bacalhau_v${{ matrix.bacalhau_version }}_darwin_arm64 .tar.gz -o bacalhau.tgz
116117 fi
117118 tar -zxvf bacalhau.tgz
118119
119120 - name : upload bacalhau plugin to be used later
120121 uses : actions/upload-artifact@v3
121122 with :
122- name : bacalhau-binary-${{matrix.os}}
123+ name : bacalhau-binary-${{matrix.os}}-${{matrix.bacalhau_version}}
123124 path : ./bacalhau
124125
125126 ci-public :
@@ -130,6 +131,7 @@ jobs:
130131 strategy :
131132 matrix :
132133 os : [ubuntu-22.04] # , macos-13]
134+ bacalhau_version : [1.0.3, 1.1.0]
133135 runs-on : ${{ matrix.os }}
134136 environment : ci
135137 env :
@@ -148,7 +150,7 @@ jobs:
148150 - name : download bacalhau binary
149151 uses : actions/download-artifact@v3
150152 with :
151- name : bacalhau-binary-${{matrix.os}}
153+ name : bacalhau-binary-${{matrix.os}}-${{matrix.bacalhau_version}}
152154
153155 - name : download docker compose plugin artifact
154156 if : runner.os != 'macos'
@@ -192,13 +194,24 @@ jobs:
192194 NEXT_PUBLIC_PRIVY_APP_ID : ${{ secrets.NEXT_PUBLIC_PRIVY_APP_ID }}
193195
194196 - name : Bring up the stack
197+ if : matrix.bacalhau_version == '1.0.3'
195198 run : |
196- # Setup docker compose private
199+ # Setup docker compose
197200 docker compose up -d --wait
201+
202+ - name : Bring up the stack
203+ if : matrix.bacalhau_version == '1.1.0'
204+ run : |
205+ # Setup docker compose 1.1.0
206+ docker compose -f docker-compose.yml -f docker-compose.1.1.0.yml up -d --wait
207+
208+ - name : Run docker compose ps
209+ run : |
198210 # Inspect number of running containers
199211 docker compose ps
200212
201213 - name : Run Equibind
214+ if : matrix.bacalhau_version == '1.0.3'
202215 run : |
203216 # Add execute permission
204217 chmod +x plex
@@ -213,27 +226,31 @@ jobs:
213226 find . -name '*docked.sdf' | grep 'docked.sdf'
214227 fi
215228
216- - name : Run docker compose logs
217- # run always even when
218- if : always()
219- run : |
220- docker compose logs
221-
222229 - name : Run bacalhau describe
230+ if : matrix.bacalhau_version == '1.0.3'
223231 # run always even when
224- if : always()
225232 run : |
226233 # Execute permission
227234 chmod +x ./bacalhau
235+ ./bacalhau version
228236 JOB_ID=$(./bacalhau list --output json | jq -r '.[0].State.JobID')
229237 ./bacalhau describe ${JOB_ID}
230238
239+ - name : Run Gateway Integration Tests
240+ uses : ./.github/actions/gateway-tests
241+
242+ - name : Run docker compose logs
243+ # run always even when
244+ if : always()
245+ run : |
246+ docker compose logs
247+
231248 - name : upload outputs
232249 # run always even when
233250 if : always()
234251 uses : actions/upload-artifact@v3
235252 with :
236- name : ci-public-output-${{matrix.os}}
253+ name : ci-public-output-${{matrix.os}}-${{matrix.bacalhau_version}}
237254 path : |
238255 job-*
239256 jobs/
@@ -247,12 +264,13 @@ jobs:
247264 strategy :
248265 matrix :
249266 os : [ubuntu-22.04] # , macos-13]
267+ bacalhau_version : [1.0.3, 1.1.0]
250268 runs-on : ${{ matrix.os }}
251269 environment : ci
252270 env :
253271 # Setting it at workflow level to be used by all the steps
254272 BACALHAU_API_HOST : " 127.0.0.1"
255- NEXT_PUBLIC_PRIVY_APP_ID : " {{ secrets.NEXT_PUBLIC_PRIVY_APP_ID }}"
273+ NEXT_PUBLIC_PRIVY_APP_ID : " $ {{ secrets.NEXT_PUBLIC_PRIVY_APP_ID }}"
256274 steps :
257275 - name : Checkout code
258276 uses : actions/checkout@v4
@@ -270,7 +288,7 @@ jobs:
270288 - name : download bacalhau binary
271289 uses : actions/download-artifact@v3
272290 with :
273- name : bacalhau-binary-${{matrix.os}}
291+ name : bacalhau-binary-${{matrix.os}}-${{matrix.bacalhau_version}}
274292
275293 - name : download docker compose plugin artifact
276294 if : runner.os != 'macos'
@@ -314,13 +332,24 @@ jobs:
314332 NEXT_PUBLIC_PRIVY_APP_ID : ${{ secrets.NEXT_PUBLIC_PRIVY_APP_ID }}
315333
316334 - name : Bring up the stack
335+ if : matrix.bacalhau_version == '1.0.3'
317336 run : |
318337 # Setup docker compose private
319338 docker compose -f docker-compose.yml -f docker-compose.private.yml up -d --wait
339+
340+ - name : Bring up the stack
341+ if : matrix.bacalhau_version == '1.1.0'
342+ run : |
343+ # Setup docker compose private
344+ docker compose -f docker-compose.yml -f docker-compose.1.1.0.yml -f docker-compose.private.yml up -d --wait
345+
346+ - name : Run docker compose ps
347+ run : |
320348 # Inspect number of running containers
321349 docker compose ps
322350
323351 - name : Run Equibind
352+ if : matrix.bacalhau_version == '1.0.3'
324353 run : |
325354 set -x
326355 # Add execute permission
@@ -351,27 +380,30 @@ jobs:
351380 find . -name '*docked.sdf' | grep 'docked.sdf'
352381 fi
353382
354- - name : Run docker compose logs
355- # run always even when
356- if : always()
357- run : |
358- docker compose logs
359-
360383 - name : Run bacalhau describe
361- # run always even when
362- if : always()
384+ if : matrix.bacalhau_version == '1.0.3'
363385 run : |
364386 # Execute permission
365387 chmod +x ./bacalhau
388+ ./bacalhau version
366389 JOB_ID=$(./bacalhau list --output json | jq -r '.[0].State.JobID')
367390 ./bacalhau describe ${JOB_ID}
368391
392+ - name : Run Gateway Integration Tests
393+ uses : ./.github/actions/gateway-tests
394+
395+ - name : Run docker compose logs
396+ # run always even when
397+ if : always()
398+ run : |
399+ docker compose logs
400+
369401 - name : upload outputs
370402 # run always even when
371403 if : always()
372404 uses : actions/upload-artifact@v3
373405 with :
374- name : ci-private-output-${{matrix.os}}
406+ name : ci-private-output-${{matrix.os}}-${{matrix.bacalhau_version}}
375407 path : |
376408 job-*
377409 jobs/
0 commit comments