Skip to content

Commit e3c703f

Browse files
author
marcel corso gonzalez
authored
Merge pull request #63 from gabrielso/github-actions
Move from Travis CI to GitHub actions
2 parents 61d0b4b + 664096a commit e3c703f

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

.github/workflows/ruby_ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ruby CI
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
ruby-version: [ "2.7.3", "3.0.1" ]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Ruby ${{ matrix.ruby-version }}
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby-version }}
20+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21+
22+
- name: Lint ${{ matrix.ruby-version }}
23+
run: bundle exec rubocop
24+
25+
- name: Test ${{ matrix.ruby-version }}
26+
run: bundle exec rspec

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ AllCops:
66
Exclude:
77
- Gemfile
88
- "*.gemspec"
9+
- "vendor/**/*"
910
Metrics/ClassLength:
1011
Enabled: false
1112
Metrics/MethodLength:

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ MessageBird's REST API for Ruby
22
===============================
33
This repository contains the open source Ruby client for MessageBird's REST API. Documentation can be found at: https://developers.messagebird.com/
44

5-
[![Build Status](https://travis-ci.org/messagebird/ruby-rest-api.svg?branch=master)](https://travis-ci.org/messagebird/ruby-rest-api)
5+
[![Build Status](https://github.com/messagebird/ruby-rest-api/actions/workflows/ruby_ci.yml/badge.svg)](https://github.com/messagebird/ruby-rest-api/actions)
66

77
Requirements
88
------------

0 commit comments

Comments
 (0)