Skip to content

Commit adb2b26

Browse files
committed
Add GitHub Actions for CI
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 2fe22db commit adb2b26

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/linux.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: [ '2.4', '2.5', '2.6', '2.7' ]
12+
os:
13+
- ubuntu-latest
14+
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
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

.github/workflows/macos.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Testing on macOS
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: [ '2.4', '2.5', '2.6', '2.7' ]
12+
os:
13+
- macOS-latest
14+
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
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)