From a1bc0e97cdcf7cccd500f6a7f800a1e6217aad59 Mon Sep 17 00:00:00 2001 From: James Hegedus Date: Thu, 6 Apr 2023 15:57:51 +1000 Subject: [PATCH] ci: pin all shell versions for Ubuntu test environment (#1531) --- .github/workflows/tests.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf9429b2..d45730b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,9 @@ on: env: ELVISH_VERSION: v0.19.2 + FISH_VERSION: 3.6.1 NUSHELL_VERSION: 0.78.0 + POWERSHELL_VERSION: 7.3.3 jobs: detect-changes: @@ -61,9 +63,11 @@ jobs: run: | curl -fsSLo- https://packages.microsoft.com/keys/microsoft.asc | sudo tee >/dev/null /etc/apt/trusted.gpg.d/microsoft.asc sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main" > /etc/apt/sources.list.d/microsoft.list' - sudo add-apt-repository -y ppa:fish-shell/nightly-master + sudo add-apt-repository -y ppa:fish-shell/release-3 sudo apt-get update - sudo apt-get -y install fish curl parallel powershell + sudo apt-get -y install curl parallel \ + fish="${{ env.FISH_VERSION }}-1~jammy" \ + powershell="${{ env.POWERSHELL_VERSION }}-1.deb" # Create $HOME/bin mkdir -p "$HOME/bin" @@ -106,7 +110,12 @@ jobs: fetch-depth: 0 - name: Install test dependencies - run: brew install coreutils parallel fish elvish nushell + run: | + brew install coreutils parallel \ + elvish \ + fish \ + nushell \ + powershell - name: Install bats run: |