[Tests] github actions removed homebrew and broke shellcheck

See https://github.com/actions/runner-images/issues/6283
Robert Shuford 2022-10-06 11:13:47 -04:00 committed by Jordan Harband
parent d451e261ed
commit 35758b75ed
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
2 changed files with 7 additions and 2 deletions

View File

@ -34,11 +34,14 @@ jobs:
github.com:443 github.com:443
pkg-containers.githubusercontent.com:443 pkg-containers.githubusercontent.com:443
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install shellcheck - name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install latest shellcheck
run: brew install shellcheck run: brew install shellcheck
env: env:
HOMEBREW_NO_ANALYTICS: 1 HOMEBREW_NO_ANALYTICS: 1
- run: "shellcheck --version" - run: which shellcheck
- run: shellcheck --version
- name: Run shellcheck on ${{ matrix.file }} - name: Run shellcheck on ${{ matrix.file }}
run: shellcheck -s ${{ matrix.shell }} ${{ matrix.file }} run: shellcheck -s ${{ matrix.shell }} ${{ matrix.file }}

View File

@ -362,6 +362,8 @@ nvm_do_install() {
exit 1 exit 1
fi fi
fi fi
# Disable the optional which check, https://www.shellcheck.net/wiki/SC2230
# shellcheck disable=SC2230
if nvm_has xcode-select && [ "$(xcode-select -p >/dev/null 2>/dev/null ; echo $?)" = '2' ] && [ "$(which git)" = '/usr/bin/git' ] && [ "$(which curl)" = '/usr/bin/curl' ]; then if nvm_has xcode-select && [ "$(xcode-select -p >/dev/null 2>/dev/null ; echo $?)" = '2' ] && [ "$(which git)" = '/usr/bin/git' ] && [ "$(which curl)" = '/usr/bin/curl' ]; then
nvm_echo >&2 'You may be on a Mac, and need to install the Xcode Command Line Developer Tools.' nvm_echo >&2 'You may be on a Mac, and need to install the Xcode Command Line Developer Tools.'
# shellcheck disable=SC2016 # shellcheck disable=SC2016