Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update using Ruby setup-ruby action
  • Loading branch information
rzhade3 authored Aug 8, 2024
commit 78d08ac078b2b6c2ee22e63e79920534b93dcc45
27 changes: 10 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@ jobs:
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2' ]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Bundler
run: |
if [[ ${{ matrix.ruby }} == '2.6' || ${{ matrix.ruby }} == '2.7' ]]; then
gem install bundler -v 2.4.22
else
gem install bundler
fi
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake

- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test with Rake
run: |
bundle exec rubocop
bundle exec rspec spec