Skip to content

Commit 7cff695

Browse files
committed
test: setup github action
1 parent bd03ad1 commit 7cff695

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/main.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
name: Ruby ${{ matrix.ruby }}
16+
strategy:
17+
matrix:
18+
ruby:
19+
- '2.7.8'
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby }}
27+
bundler-cache: true
28+
- name: bundle
29+
run: bundle install
30+
- name: compile
31+
run: |
32+
cd ext/rinchi-gem/
33+
ruby extconf.rb && make
34+
- name: test
35+
run: bundle exec rake

Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ require "rubocop/rake_task"
1313

1414
RuboCop::RakeTask.new
1515

16-
task default: %i[test rubocop]
16+
# task default: %i[test rubocop]
17+
task default: %i[test]

0 commit comments

Comments
 (0)