change export PATH to add-path for github actions
This commit is contained in:
parent
10ba0d5a66
commit
e1508c66ff
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@ -13,7 +13,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Set up Git repository
|
- name: Set up Git repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
- name: Add Homebrew path
|
||||||
|
run: echo "::add-path::/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
run: |
|
run: |
|
||||||
if [ "$RUNNER_OS" = "Linux" ]; then
|
if [ "$RUNNER_OS" = "Linux" ]; then
|
||||||
@ -26,7 +27,6 @@ jobs:
|
|||||||
sudo mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar
|
sudo mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar
|
||||||
sudo ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/
|
sudo ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/
|
||||||
sudo chown -R "$USER" /home/linuxbrew
|
sudo chown -R "$USER" /home/linuxbrew
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
|
|
||||||
# Install taps needed for 'brew tests'
|
# Install taps needed for 'brew tests'
|
||||||
export HOMEBREW_NO_AUTO_UPDATE=1
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||||
@ -47,14 +47,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Run brew config
|
- name: Run brew config
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
brew config
|
brew config
|
||||||
|
|
||||||
- name: Run brew doctor
|
- name: Run brew doctor
|
||||||
run: |
|
run: |
|
||||||
if [ "$RUNNER_OS" = "Linux" ]; then
|
if [ "$RUNNER_OS" = "Linux" ]; then
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin"
|
|
||||||
|
|
||||||
# Cleanup some Linux `brew doctor` failures
|
# Cleanup some Linux `brew doctor` failures
|
||||||
sudo rm -rf /usr/local/include/node/
|
sudo rm -rf /usr/local/include/node/
|
||||||
else
|
else
|
||||||
@ -65,7 +62,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Bundler RubyGems
|
- name: Install Bundler RubyGems
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
brew install-bundler-gems
|
brew install-bundler-gems
|
||||||
|
|
||||||
# Check for uncommitted gems
|
# Check for uncommitted gems
|
||||||
@ -88,7 +84,6 @@ jobs:
|
|||||||
|
|
||||||
# don't bother running all tests on both platforms (for speed)
|
# don't bother running all tests on both platforms (for speed)
|
||||||
if [ "$RUNNER_OS" = "Linux" ]; then
|
if [ "$RUNNER_OS" = "Linux" ]; then
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin"
|
|
||||||
brew tests --no-compat --online
|
brew tests --no-compat --online
|
||||||
brew tests --generic --online
|
brew tests --generic --online
|
||||||
brew tests --online
|
brew tests --online
|
||||||
@ -108,17 +103,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Run brew style
|
- name: Run brew style
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
brew style --display-cop-names
|
brew style --display-cop-names
|
||||||
|
|
||||||
- name: Run brew man
|
- name: Run brew man
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
brew man --fail-if-changed
|
brew man --fail-if-changed
|
||||||
|
|
||||||
- name: Run brew update-tests
|
- name: Run brew update-tests
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
git config --global user.name "BrewTestBot"
|
git config --global user.name "BrewTestBot"
|
||||||
git config --global user.email "homebrew-test-bot@lists.sfconservancy.org"
|
git config --global user.email "homebrew-test-bot@lists.sfconservancy.org"
|
||||||
brew update-test
|
brew update-test
|
||||||
@ -128,12 +120,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Run brew readall
|
- name: Run brew readall
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
brew readall --aliases
|
brew readall --aliases
|
||||||
|
|
||||||
- name: Run vale for docs linting
|
- name: Run vale for docs linting
|
||||||
run: |
|
run: |
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin"
|
|
||||||
brew install vale
|
brew install vale
|
||||||
vale $(brew --repo)/docs/
|
vale $(brew --repo)/docs/
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user