Skip to content

Commit

Permalink
Merge pull request #1 from ruby/use-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions instead of Travis CI.
  • Loading branch information
hsbt committed Dec 9, 2019
2 parents 60bc9e7 + b9e09d8 commit 8314be8
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/macos.yml
@@ -0,0 +1,22 @@
name: macos

on: [push, pull_request]

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Bundler
run: gem install bundler --no-document
- name: Install dependencies
run: bundle install
- name: Run test
run: rake
33 changes: 33 additions & 0 deletions .github/workflows/ubuntu-rvm.yml
@@ -0,0 +1,33 @@
name: ubuntu-rvm

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ 'ruby-head' ]
fail-fast: false
steps:
- uses: actions/checkout@master
- name: Set up RVM
run: |
curl -sSL https://get.rvm.io | bash
- name: Set up Ruby
run: |
source $HOME/.rvm/scripts/rvm
rvm install ${{ matrix.ruby }} --binary
rvm --default use ${{ matrix.ruby }}
- name: Set up Bundler
run: |
source $HOME/.rvm/scripts/rvm
gem install bundler --no-document
- name: Install dependencies
run: |
source $HOME/.rvm/scripts/rvm
bundle install
- name: Run test
run: |
source $HOME/.rvm/scripts/rvm
rake
22 changes: 22 additions & 0 deletions .github/workflows/ubuntu.yml
@@ -0,0 +1,22 @@
name: ubuntu

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Bundler
run: gem install bundler --no-document
- name: Install dependencies
run: bundle install
- name: Run test
run: rake
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

0 comments on commit 8314be8

Please sign in to comment.