@@ -360,7 +360,8 @@ jobs:
360
360
path : .\dist\*.exe
361
361
362
362
e2e-test-windows :
363
- needs : [prepare-matrices, build-windows, get-app-version]
363
+ # needs: [prepare-matrices, build-windows, get-app-version]
364
+ needs : [prepare-matrices, get-app-version, build-test-manager-linux]
364
365
if : |
365
366
!cancelled() &&
366
367
needs.get-app-version.result == 'success' &&
@@ -374,20 +375,39 @@ jobs:
374
375
matrix :
375
376
os : ${{ fromJSON(needs.prepare-matrices.outputs.windows_matrix) }}
376
377
steps :
378
+ - name : Checkout repository
379
+ uses : actions/checkout@v4
380
+ - name : Create binaries directory & add to PATH
381
+ shell : bash -ieo pipefail {0}
382
+ run : |
383
+ mkdir "${{ github.workspace }}/bin"
384
+ echo "${{ github.workspace }}/bin/" >> "$GITHUB_PATH"
385
+ - name : Download Test Manager
386
+ uses : actions/download-artifact@v4
387
+ if : ${{ needs.build-test-manager-linux.result == 'success' }}
388
+ with :
389
+ name : linux-test-manager-build
390
+ path : ${{ github.workspace }}/bin
391
+ - name : chmod binaries
392
+ run : |
393
+ ls -la ${{ github.workspace }}/bin/*
394
+ chmod +x ${{ github.workspace }}/bin/*
377
395
- name : Download App
378
396
uses : actions/download-artifact@v4
379
397
if : ${{ needs.build-windows.result == 'success' }}
380
398
with :
381
399
name : windows-build
382
400
path : ~/.cache/mullvad-test/packages
383
- - name : Checkout repository
384
- uses : actions/checkout@v4
385
401
- name : Run end-to-end tests
386
402
shell : bash -ieo pipefail {0}
387
403
env :
388
404
CURRENT_VERSION : ${{needs.get-app-version.outputs.mullvad-version}}
389
405
run : |
406
+ # A directory with all the binaries is required to run test-manager.
407
+ # The test scripts which runs in CI expects this folder to be available as the `TEST_DIST_DIR` variable.
408
+ export TEST_DIST_DIR="${{ github.workspace }}/bin/"
390
409
export TEST_FILTERS="${{ github.event.inputs.tests }}"
410
+ ls -la "$TEST_DIST_DIR"
391
411
./test/scripts/run/ci.sh ${{ matrix.os }}
392
412
- name : Upload test report
393
413
uses : actions/upload-artifact@v4
0 commit comments