Skip to content

Add a github action to publish gem to Rubygem #3

Add a github action to publish gem to Rubygem

Add a github action to publish gem to Rubygem #3

Workflow file for this run

name: Ruby CI
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.3", "3.2", "3.1", "3.0"]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec