Skip to content

Commit

Permalink
Merge pull request #3 from eduvo/github-action
Browse files Browse the repository at this point in the history
Create ruby.yml
  • Loading branch information
mamantoha authored Sep 14, 2023
2 parents 09c0393 + d3c2b66 commit 21ecbf6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Ruby

on: [push, pull_request]

jobs:
build:
name: build (${{ matrix.ruby }})
strategy:
matrix:
ruby: [2.7, 3.0, 3.1, 3.2]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install apt dependencies
run: sudo apt-get install -y ragel
- name: Install dependencies
run: bundle install
- name: Install native extensions
run: bundle exec rake compile
- name: Run test
run: rspec

0 comments on commit 21ecbf6

Please sign in to comment.