Skip to content

Commit

Permalink
Add RSpec workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Mar 18, 2024
1 parent 5513ceb commit daa4ec9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Ruby

on:
push:
branches:
- master

pull_request:

jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby: ['2.7', '3.0', '3.2']

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run rspec
run: bundle exec rake spec

lint:
runs-on: ubuntu-latest
name: Rubocop

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7" # minimal supported version
bundler-cache: true

- name: Run rubocop
run: bundle exec rake rubocop

0 comments on commit daa4ec9

Please sign in to comment.