Skip to content

Merge pull request #1501 from Homebrew/dependabot/github_actions/code… #1665

Merge pull request #1501 from Homebrew/dependabot/github_actions/code…

Merge pull request #1501 from Homebrew/dependabot/github_actions/code… #1665

Workflow file for this run

name: CI
on:
push:
branches: master
pull_request:
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-
- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems
- run: brew test-bot --only-tap-syntax
- name: Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
bundler-cache: true
- name: Run RSpec tests
run: bundle exec rspec
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a
if: always()
- name: Test that installing works
run: |
echo 'brew "hello"' > ./Brewfile
brew bundle
hello