Skip to content

Commit

Permalink
Update Github CI to run tests on matrix of ruby/rails
Browse files Browse the repository at this point in the history
  • Loading branch information
jlurena committed Jul 11, 2024
1 parent 56bd0e5 commit ed4239d
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,18 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
rails-version: ['6.1', '7.1']
ruby-version: ['3.1', '3.2', '3.3']
rails-version: ['6.1', '7.0', '7.1']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
env:
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
DEBUG: true
- name: Run tests
run: bundle exec rake
# Doesn't work. Needs secret or repo setting update
# - name: Code Coverage
# if: matrix.rails-version == '7.1'
# uses: joshmfrankel/[email protected]
# with:
# check_job_name: Code Coverage
# minimum_suite_coverage: 100
# github_token: ${{ secrets.GITHUB_TOKEN }}
# Doesn't work. Needs secret or repo setting update?
# lint:
# needs: [test]
# runs-on: ubuntu-20.04
# steps:
# - name: Lint
# uses: standardrb/standard-ruby-action@v1
# with:
# ruby-version: '3.0'

0 comments on commit ed4239d

Please sign in to comment.