Skip to content

setup ci github action workflow (#5) #4

setup ci github action workflow (#5)

setup ci github action workflow (#5) #4

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: main
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.2', '3.3']
gemfile:
- gemfiles/rspec_3.9.gemfile
- gemfiles/rspec_3.10.gemfile
- gemfiles/rspec_3.11.gemfile
- gemfiles/rspec_3.12.gemfile
- gemfiles/rspec_3.13.gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
run: bundle exec rake