Skip to content

Commit a719680

Browse files
authoredAug 5, 2022
Change travis to github actions (guilhermesad#254)
* chore: add asdf version control to gitignore * chore: add main workflow on actions (wip) - add simple action with only one ruby version * refactor: add multiple ruby versions on build * chore: add newer ruby versions and cache on build action - remove older versions (2.1, 2.0) * chore: add version ruby 2.2 on build * chore: add ruby head on build * chore: remove travis * docs: replace travis badge * chore: drop support to ruby versions 2.0 and 2.1
1 parent 6d79feb commit a719680

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed
 

‎.github/workflows/main.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Ruby
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
ruby-version: ['head', '3.1', '3.0', '2.7', '2.6', '2.3', '2.2']
12+
13+
steps:
14+
- uses: actions/checkout@v3
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
21+
22+
- name: Install dependencies
23+
run: bundle install
24+
25+
- name: Run tests
26+
run: bundle exec rspec

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ doc
66
pkg
77
Gemfile.lock
88
*.swp
9+
.tool-versions
10+
.DS_Store

‎.travis.yml

-10
This file was deleted.

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RSpotify
22

33
[![Gem Version](https://badge.fury.io/rb/rspotify.svg)](http://badge.fury.io/rb/rspotify)
4-
[![Build Status](https://travis-ci.org/guilhermesad/rspotify.svg?branch=master)](https://travis-ci.org/guilhermesad/rspotify)
4+
[![Build Status](https://github.com/guilhermesad/rspotify/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/guilhermesad/rspotify/actions)
55

66
This is a ruby wrapper for the [Spotify Web API](https://developer.spotify.com/web-api).
77

‎rspotify.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
2727
spec.add_development_dependency 'yard'
2828
spec.add_development_dependency 'vcr', '~> 3.0'
2929

30-
spec.required_ruby_version = '>= 2.0.0'
30+
spec.required_ruby_version = '>= 2.2.0'
3131
end

0 commit comments

Comments
 (0)
Please sign in to comment.