Skip to content

Merge pull request #25 from pocke/Update_type_checking_environment #56

Merge pull request #25 from pocke/Update_type_checking_environment

Merge pull request #25 from pocke/Update_type_checking_environment #56

Workflow file for this run

name: Ruby
on:
push:
branches:
- master
pull_request:
jobs:
run_spec:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile}}
strategy:
matrix:
ruby:
- '3.1'
- '3.2'
- '3.3'
- 'head'
gemfile:
- activerecord_6_1
- activerecord_7_0
- activerecord_7_1
- activerecord_7_2
exclude:
# Old ARs does not work on Ruby head due to lack of stdlib dependencies
- ruby: 'head'
gemfile: activerecord_6_1
- ruby: 'head'
gemfile: activerecord_7_0
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run bin/setup
run: bin/setup
- name: Run the default task
run: bundle exec rake spec
static_check:
runs-on: ubuntu-latest
name: Static Checking
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Run bin/setup
run: bin/setup
- name: Run the default task
run: bundle exec rake rubocop steep