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 b56ffe2 commit 5e36664
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ require "rubocop/rake_task"

RuboCop::RakeTask.new

task default: %i[test rubocop]
# task default: %i[test rubocop]
task default: %i[test]

0 comments on commit 5e36664

Please sign in to comment.