Skip to content

Merge pull request #284 from voxpupuli/dependabot/github_actions/acti… #337

Merge pull request #284 from voxpupuli/dependabot/github_actions/acti…

Merge pull request #284 from voxpupuli/dependabot/github_actions/acti… #337

Workflow file for this run

name: Test
on:
pull_request: {}
push:
branches:
- master
jobs:
rubocop:
env:
BUNDLE_WITHOUT: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Run Rubocop
run: bundle exec rake rubocop
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
steps:
- uses: actions/checkout@v4
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
env:
BUNDLE_WITHOUT: release
- name: Run tests
run: bundle exec rake spec
- name: Build gem
run: gem build *.gemspec
tests:
needs:
- rubocop
- test
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed