Skip to content

Commit

Permalink
Sets up brew before install dependencies (#9)
Browse files Browse the repository at this point in the history
* Sets up brew before install dependencies

* Do not forget the workflow

* Removes jq where unneeded

Co-authored-by: Mike Carey <[email protected]>
  • Loading branch information
mike-carey and mike-carey authored Sep 26, 2022
1 parent f086b69 commit 5a4fd77
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/actions/test-deploy-to-s3-bucket/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ runs:
steps:
- name: 'Install BATS and jq'
shell: bash
run: brew install bats-core jq
run: |
# Add brews to the path
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
# Setup brew environment
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install bats
brew install bats-core jq
- name: 'Checkout'
uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/actions/test-package-archive/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ runs:
steps:
- name: 'Install BATS'
shell: bash
run: brew install bats-core
run: |
# Add brews to the path
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
# Setup brew environment
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install bats
brew install bats-core
- name: 'Checkout'
uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/actions/test-setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ runs:
steps:
- name: 'Install BATS'
shell: bash
run: brew install bats-core
run: |
# Add brews to the path
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
# Setup brew environment
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install bats
brew install bats-core
- name: 'Checkout actions'
uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/actions/test-unpack-archive/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ runs:
steps:
- name: 'Install BATS'
shell: bash
run: brew install bats-core
run: |
# Add brews to the path
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
# Setup brew environment
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install bats
brew install bats-core
- name: 'Checkout'
uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ jobs:
uses: actions/checkout@v2

- name: 'Install bats'
run: brew install bats-core
run: |
# Add brews to the path
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
# Setup brew environment
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install bats
brew install bats-core
- name: 'Run action tests'
run: bats -r actions/*/*.bats

0 comments on commit 5a4fd77

Please sign in to comment.