Skip to content

add github action

add github action #12

Workflow file for this run

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