Skip to content

Commit 38350b0

Browse files
committed
test: setup github action
1 parent bd03ad1 commit 38350b0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
- '3.3.0'
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby }}
28+
bundler-cache: true
29+
- name: bundle
30+
run: bundle install
31+
- name: compile
32+
run: |
33+
cd ext/rinchi-gem/
34+
ruby extconf.rb && make
35+
- name: test
36+
run: bundle exec rake

0 commit comments

Comments
 (0)