Skip to content

CI: Switch to voxpupuli/ruby-version #128

CI: Switch to voxpupuli/ruby-version

CI: Switch to voxpupuli/ruby-version #128

Workflow file for this run

name: Test
on:
pull_request: {}
push:
branches:
- master
env:
BUNDLE_WITHOUT: release
jobs:
rubocop_and_matrix:
runs-on: ubuntu-latest
outputs:
ruby: ${{ steps.ruby.outputs.versions }}
steps:
- uses: actions/checkout@v4
- name: Install Ruby 3.4
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Run RuboCop
run: bundle exec rake rubocop
- id: ruby
uses: voxpupuli/ruby-version@v1
test:
name: "Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest
needs: rubocop_and_matrix
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
steps:
- uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
- name: Build the gem
run: gem build --strict --verbose *.gemspec
tests:
needs:
- test
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed