Skip to content

Commit

Permalink
Add GithubAction config
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 23, 2024
1 parent a075b0a commit e83340f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
rspec:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- 'head'
- jruby
- jruby-head
- truffleruby
- truffleruby-head

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Update bundler
env:
RUBY_VERSION: ${{ matrix.ruby }}
run: |
case ${RUBY_VERSION} in
truffleruby|truffleruby-head)
gem install bundler -v 2.5.18
;;
*)
gem update --system
;;
esac
bundle install
- name: RSpec
run: bin/rspec

0 comments on commit e83340f

Please sign in to comment.