summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2025-03-18 11:13:09 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-03-18 13:33:08 +0100
commit3a32454066c6e0f2e662a4586544bc7efd25a595 (patch)
tree06cfc76a3b93e2215593c632657a808e25fd7ca3
parent49efba22d7e9ecf09a93bea537803412182310e4 (diff)
downloadmullvadvpn-3a32454066c6e0f2e662a4586544bc7efd25a595.tar.xz
mullvadvpn-3a32454066c6e0f2e662a4586544bc7efd25a595.zip
Use pre-built `test-manager` binary for Windows tests
-rw-r--r--.github/workflows/desktop-e2e.yml29
1 files changed, 26 insertions, 3 deletions
diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml
index f2ed76df8d..b0624459c9 100644
--- a/.github/workflows/desktop-e2e.yml
+++ b/.github/workflows/desktop-e2e.yml
@@ -360,7 +360,13 @@ jobs:
path: .\dist\*.exe
e2e-test-windows:
- needs: [prepare-matrices, build-windows, get-app-version]
+ needs:
+ [
+ prepare-matrices,
+ build-windows,
+ get-app-version,
+ build-test-manager-linux,
+ ]
if: |
!cancelled() &&
needs.get-app-version.result == 'success' &&
@@ -374,19 +380,36 @@ jobs:
matrix:
os: ${{ fromJSON(needs.prepare-matrices.outputs.windows_matrix) }}
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Create binaries directory & add to PATH
+ shell: bash -ieo pipefail {0}
+ run: |
+ mkdir "${{ github.workspace }}/bin"
+ echo "${{ github.workspace }}/bin/" >> "$GITHUB_PATH"
+ - name: Download Test Manager
+ uses: actions/download-artifact@v4
+ if: ${{ needs.build-test-manager-linux.result == 'success' }}
+ with:
+ name: linux-test-manager-build
+ path: ${{ github.workspace }}/bin
+ - name: chmod binaries
+ run: |
+ chmod +x ${{ github.workspace }}/bin/*
- name: Download App
uses: actions/download-artifact@v4
if: ${{ needs.build-windows.result == 'success' }}
with:
name: windows-build
path: ~/.cache/mullvad-test/packages
- - name: Checkout repository
- uses: actions/checkout@v4
- name: Run end-to-end tests
shell: bash -ieo pipefail {0}
env:
CURRENT_VERSION: ${{needs.get-app-version.outputs.mullvad-version}}
run: |
+ # A directory with all the binaries is required to run test-manager.
+ # The test scripts which runs in CI expects this folder to be available as the `TEST_DIST_DIR` variable.
+ export TEST_DIST_DIR="${{ github.workspace }}/bin/"
export TEST_FILTERS="${{ github.event.inputs.tests }}"
./test/scripts/run/ci.sh ${{ matrix.os }}
- name: Upload test report