Skip to content

Commit

Permalink
Merge pull request #3 from jscharf/fix-ci
Browse files Browse the repository at this point in the history
Add homebrew and rubyfmt set up to CI script
  • Loading branch information
jscharf authored Dec 28, 2023
2 parents a1bda64 + 9b18ac7 commit fbf4260
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,24 @@ permissions:
jobs:
test:

runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2']
ruby-version: ['3.0', '3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Set up rubyfmt
run: brew install rubyfmt
- name: Run tests
run: bundle exec rake test
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ GEM
PLATFORMS
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-20

DEPENDENCIES
bundler (~> 2.4.2)
Expand Down

0 comments on commit fbf4260

Please sign in to comment.