Skip to content

Commit 754a2f0

Browse files
committed
Migrate GitHub Actions from Travis CI
1 parent be6e37f commit 754a2f0

File tree

4 files changed

+88
-0
lines changed

4 files changed

+88
-0
lines changed

.github/workflows/macos.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: macos
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Install dependencies
11+
run: |
12+
gem install bundler --no-document
13+
bundle install
14+
- name: Run test
15+
run: rake

.github/workflows/ubuntu-rvm.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ubuntu-rvm
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby: [ 'jruby-9.2.6.0', 'jruby-9.1.17.0', 'ruby-head' ]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up RVM
14+
run: |
15+
curl -sSL https://get.rvm.io | bash
16+
- name: Set up Ruby
17+
run: |
18+
source $HOME/.rvm/scripts/rvm
19+
rvm install ${{ matrix.ruby }} --binary
20+
rvm --default use ${{ matrix.ruby }}
21+
- name: Install dependencies
22+
run: |
23+
source $HOME/.rvm/scripts/rvm
24+
gem install bundler --no-document
25+
bundle install
26+
- name: Run test
27+
run: |
28+
source $HOME/.rvm/scripts/rvm
29+
rake

.github/workflows/ubuntu.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ubuntu
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Ruby
14+
uses: actions/setup-ruby@v1
15+
with:
16+
version: ${{ matrix.ruby }}
17+
- name: Install dependencies
18+
run: |
19+
gem install bundler --no-document
20+
bundle install
21+
- name: Run test
22+
run: rake

.github/workflows/windows.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: windows
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
strategy:
9+
matrix:
10+
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Ruby
14+
uses: actions/setup-ruby@v1
15+
with:
16+
version: ${{ matrix.ruby }}
17+
- name: Set up Bundler
18+
run: gem install bundler --no-document
19+
- name: Install dependencies
20+
run: bundle install
21+
- name: Run test
22+
run: rake

0 commit comments

Comments
 (0)