Skip to content

Commit

Permalink
Add ruby test matrix and standard linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fnordfish committed Aug 28, 2024
1 parent fc39b53 commit 1512be5
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,40 @@ on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
tests:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
ruby:
- '3.3.4'
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- "head"

runs-on: ${{ matrix.os }}
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
- name: RSpec tests
run: bundle exec rspec

lint:
runs-on: ubuntu-latest
name: Standard Ruby Lint
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Standard
run: bundle exec standardrb

0 comments on commit 1512be5

Please sign in to comment.