Skip to content

test: add github action for testing #3

test: add github action for testing

test: add github action for testing #3

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '2.7.8'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: bundle
run: bundle install
- name: compile
run: |
cd ext/rinchi-gem/
ruby extconf.rb && make
- name: test
run: bundle exec rake