diff --git a/.github/actions/test-deploy-to-s3-bucket/action.yml b/.github/actions/test-deploy-to-s3-bucket/action.yml index ef57a4d9..5b256269 100644 --- a/.github/actions/test-deploy-to-s3-bucket/action.yml +++ b/.github/actions/test-deploy-to-s3-bucket/action.yml @@ -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 diff --git a/.github/actions/test-package-archive/action.yml b/.github/actions/test-package-archive/action.yml index e7404393..8fb8a60a 100644 --- a/.github/actions/test-package-archive/action.yml +++ b/.github/actions/test-package-archive/action.yml @@ -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 diff --git a/.github/actions/test-setup-node/action.yml b/.github/actions/test-setup-node/action.yml index dc02de7d..09b178a7 100644 --- a/.github/actions/test-setup-node/action.yml +++ b/.github/actions/test-setup-node/action.yml @@ -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 diff --git a/.github/actions/test-unpack-archive/action.yml b/.github/actions/test-unpack-archive/action.yml index 891c45cd..da64be8d 100644 --- a/.github/actions/test-unpack-archive/action.yml +++ b/.github/actions/test-unpack-archive/action.yml @@ -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 diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index d7cbb38f..c33dea04 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -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