Skip to content

Update RSpec setup

Update RSpec setup #9

Workflow file for this run

# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: build
on:
push:
branches: [main]
pull_request:
branches: "*"
jobs:
lint:
name: Lint (Standard)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true
- run: bundle exec standardrb --format github
test:
name: Specs
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.7, head, jruby-9.4, jruby-head]
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
- run: bundle exec rake spec