Skip to content

Commit

Permalink
simplify build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
alachaum committed Apr 17, 2024
1 parent 2257546 commit b6dcf9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/test_ruby_2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
ruby:
- '2.7.5'
- '2.7'
appraisal:
- 'rails-5.2'
- 'rails-6.0'
Expand All @@ -18,19 +18,13 @@ jobs:
- 'semantic_logger-4.6'
- 'semantic_logger-4.7.0'
- 'semantic_logger-4.7.2'
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.appraisal }}.gemfile
steps:
- uses: actions/checkout@v2
- uses: zhulik/[email protected]
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test with Rake
env:
APPRAISAL_CONTEXT: ${{ matrix.appraisal }}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec appraisal ${APPRAISAL_CONTEXT} bundle
bundle exec appraisal ${APPRAISAL_CONTEXT} rspec
- run: bundle exec rspec
14 changes: 4 additions & 10 deletions .github/workflows/test_ruby_3.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,13 @@ jobs:
- 'semantic_logger-4.6'
- 'semantic_logger-4.7.0'
- 'semantic_logger-4.7.2'
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.appraisal }}.gemfile
steps:
- uses: actions/checkout@v2
- uses: zhulik/[email protected]
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test with Rake
env:
APPRAISAL_CONTEXT: ${{ matrix.appraisal }}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec appraisal ${APPRAISAL_CONTEXT} bundle
bundle exec appraisal ${APPRAISAL_CONTEXT} rspec
- run: bundle exec rspec

0 comments on commit b6dcf9c

Please sign in to comment.