summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2024-10-18 16:14:12 +0200
committerDavid Lönnhager <david.l@mullvad.net>2024-10-21 09:08:20 +0200
commitc32e72ab7ce0940f36060b79891471ad32dfd703 (patch)
treeb6ab197e420d4ea21424e7f0ddd813a11e665877
parente71e1450b8c891ff23c1120ace2c13ddd5c77342 (diff)
downloadmullvadvpn-c32e72ab7ce0940f36060b79891471ad32dfd703.tar.xz
mullvadvpn-c32e72ab7ce0940f36060b79891471ad32dfd703.zip
Update Rust before running end-to-end tests
-rw-r--r--.github/workflows/desktop-e2e.yml5
-rwxr-xr-xtest/scripts/ci-runtests.sh6
2 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml
index d386078d4e..1a1abdcbb0 100644
--- a/.github/workflows/desktop-e2e.yml
+++ b/.github/workflows/desktop-e2e.yml
@@ -270,6 +270,11 @@ jobs:
node-version-file: gui/package.json
cache: 'npm'
cache-dependency-path: gui/package-lock.json
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1.0.6
+ with:
+ toolchain: stable
+ default: true
- name: Build app
run: ./build.sh
- name: Build test executable
diff --git a/test/scripts/ci-runtests.sh b/test/scripts/ci-runtests.sh
index 4aeab28271..88a8944164 100755
--- a/test/scripts/ci-runtests.sh
+++ b/test/scripts/ci-runtests.sh
@@ -13,6 +13,12 @@ fi
TEST_OS=$1
+if [[ "$(uname -s)" == "Darwin" ]]; then
+ # NOTE: We only do this on macOS since we use containers otherwise
+ echo "Updating Rust toolchain"
+ rustup update
+fi
+
# shellcheck source=test/scripts/test-utils.sh
source "test-utils.sh"