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