Skip to content

Commit ce132f9

Browse files
authored
Fixes CI issues (#14)
* Don't update bundler in CI before install. * Added GitHub workflow. * Make the tests runs on macOS. * Remove rubucop from dev dependencies in CI. * Specify v1 as setup-ruby's version. * Fixes typo. * Remove rubucop from depdency. * Get back to default bundler behaviour. * Remove travis config. * Add badge for GitHub Actions.
1 parent 3b29752 commit ce132f9

File tree

4 files changed

+29
-14
lines changed

4 files changed

+29
-14
lines changed

.github/workflows/test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
15+
runs-on: macos-latest
16+
strategy:
17+
matrix:
18+
ruby-version: ['2.3', '2.4', '2.6', '2.7', '3.0']
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: ${{ matrix.ruby-version }}
26+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27+
- name: Run tests
28+
run: bundle exec rake spec

.travis.yml

-10
This file was deleted.

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
Command line tool to send iMessage.
44

5-
[![Build Status](https://travis-ci.org/linjunpop/imessage.svg?branch=master)](https://travis-ci.org/linjunpop/imessage)
5+
![Tests](https://github.com/linjunpop/imessage/actions/workflows/test.yml/badge.svg)
66
[![Gem Version](https://img.shields.io/gem/v/imessage.svg)](https://rubygems.org/gems/imessage)
77
[![codebeat badge](https://codebeat.co/badges/69f6f8ee-8ddd-4355-aa7c-0cd4ac369718)](https://codebeat.co/projects/github-com-linjunpop-imessage-master)
88

9-
10-
119
## Installation
1210

1311
### As a Homebrew(http://brew.sh) package

imessage.gemspec

-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ Gem::Specification.new do |spec|
2020

2121
spec.add_development_dependency 'rake', '~> 13.0'
2222
spec.add_development_dependency 'rspec', '~> 3.3'
23-
spec.add_development_dependency 'rubocop', '~> 1.29'
2423
end

0 commit comments

Comments
 (0)