Skip to content

Commit f7dc969

Browse files
committed
github: add CI on GitHub
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent 61e534b commit f7dc969

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/linux.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Testing on Ubuntu
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ruby:
12+
- 3.1
13+
- 3.2
14+
- 3.3
15+
- head
16+
os:
17+
- ubuntu-latest
18+
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby }}
24+
- name: unit testing
25+
env:
26+
CI: true
27+
run: |
28+
gem install bundler rake
29+
bundle install --jobs 4 --retry 3
30+
bundle exec rake test

.github/workflows/windows.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Testing on Windows
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ruby: [ '3.1', '3.2', '3.3', 'head' ]
12+
os:
13+
- windows-latest
14+
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
- name: unit testing
21+
env:
22+
CI: true
23+
run: |
24+
gem install bundler rake
25+
bundle install --jobs 4 --retry 3
26+
bundle exec rake test

0 commit comments

Comments
 (0)