Skip to content

Commit

Permalink
test: setup github action
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTrem committed May 23, 2024
1 parent bd03ad1 commit 67e4508
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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'
- '3.3.0'

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

0 comments on commit 67e4508

Please sign in to comment.