Skip to content

Commit

Permalink
Move CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Nov 27, 2021
1 parent 855040f commit a668efc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Ruby tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
name: Ruby tests
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['1.9.3', '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RABL #

[![Continuous Integration status](https://secure.travis-ci.org/nesquena/rabl.svg)](http://travis-ci.org/nesquena/rabl)
[![Continuous Integration status](https://github.com/nesquena/rabl/actions/workflows/ci.yml/badge.svg)](https://github.com/nesquena/rabl/actions)
[![Code Climate](https://codeclimate.com/github/nesquena/rabl.svg)](https://codeclimate.com/github/nesquena/rabl)

RABL (Ruby API Builder Language) is a Rails and [Padrino](http://padrinorb.com) ruby templating system for generating JSON, XML, MessagePack, PList and BSON.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ desc "Prepares the fixtures being tested by installing dependencies"
task "test:setup" do
Dir[File.dirname(__FILE__) + "/fixtures/#{fixture_list}"].each do |fixture|
puts "\n*** Setting up for #{File.basename(fixture)} tests ***\n"
`export BUNDLE_GEMFILE="#{fixture}/Gemfile"` if ENV["TRAVIS"]
`export BUNDLE_GEMFILE="#{fixture}/Gemfile"` if ENV["CI"]
Bundler.with_clean_env {
Dir.chdir(fixture) {
puts `mkdir -p tmp/cache; bundle install --gemfile="#{fixture}/Gemfile"`
Expand Down

0 comments on commit a668efc

Please sign in to comment.