Skip to content

Commit f48e697

Browse files
authored
Merge pull request #17 from ruby/use-actions
Migrate GitHub Actions from Travis CI
2 parents 9bc6e30 + 5ad6609 commit f48e697

File tree

4 files changed

+77
-8
lines changed

4 files changed

+77
-8
lines changed

.github/workflows/macos.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: macos
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-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+
ruby-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

.github/workflows/ubuntu-rvm.yml

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

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)