Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
ci.yml: update to match main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewTestBot committed Jul 30, 2020
1 parent 7f8627f commit e69444b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@ jobs:
ci:
runs-on: macos-latest
steps:
- name: Check out Pull Request
- name: Update Homebrew
id: update_homebrew
run: |
brew update-reset "$(brew --repository)"
set -euo pipefail
homebrew_repository="$(brew --repository)"
brew update-reset "${homebrew_repository}"
HOMEBREW_INSTALL_BUNDLER_GEMS_FIRST=1 brew config
echo "::set-output name=homebrew_gems_cache_id::$(shasum -a 256 "${homebrew_repository}/Library/Homebrew/Gemfile.lock" | cut -f1 -d ' ')"
echo "::set-output name=homebrew_gems_cache_dir::${homebrew_repository}/Library/Homebrew/vendor/bundle/ruby"
- name: Cache Homebrew Gems
uses: actions/cache@v2
with:
path: ${{ steps.update_homebrew.outputs.homebrew_gems_cache_dir }}
key: homebrew-gems-cache-${{ steps.update_homebrew.outputs.homebrew_gems_cache_id }}
- name: Install Homebrew Gems
run: brew install-bundler-gems
- name: Check out Pull Request
run: |
set -euo pipefail
brew tap "${GITHUB_REPOSITORY}"
Expand Down

0 comments on commit e69444b

Please sign in to comment.