Skip to content

Commit

Permalink
Update Rust before running end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Oct 18, 2024
1 parent f7ee8f3 commit 7bb9376
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/desktop-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
toolchain: stable
default: true
- name: Build app
run: ./build.sh
- name: Build test executable
Expand Down
6 changes: 6 additions & 0 deletions test/scripts/ci-runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 7bb9376

Please sign in to comment.