Skip to content

Attempting to do multi-ruby-version-builds #6

Attempting to do multi-ruby-version-builds

Attempting to do multi-ruby-version-builds #6

Workflow file for this run

name: build and test
on:
push:
branches:
- main
tags:
- '*.*.*'
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- 3.2
- 3.3
- 3.4
steps:
- uses: actions/checkout@v4
- name: Set up Ruby and Install Gem
uses: ruby/setup-ruby@v1 # zizmor: ignore[unpinned-uses]
env:
BUNDLE_GEMFILE: gemfiles/Gemfile.ruby${{ matrix.ruby-version }}
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run rubocop
env:
BUNDLE_GEMFILE: gemfiles/Gemfile.ruby${{ matrix.ruby-version }}
run: |
bundle exec rubocop
- name: Run rspec test
env:
BUNDLE_GEMFILE: gemfiles/Gemfile.ruby${{ matrix.ruby-version }}
run: |
bundle exec rspec