Skip to content

Ruby 3 update

Ruby 3 update #1

Workflow file for this run

name: Ruby
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.0', '3.2']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rspec
deploy:
name: Build + Publish
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
packages: write
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Publish package to GPR and Gemfury
run: |
./deploy.sh
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"