Skip to content

Commit

Permalink
Merge pull request #475 from hahmed/ha/move-to-gitub-actions
Browse files Browse the repository at this point in the history
Move to github actions
  • Loading branch information
rafaelfranca committed Jun 23, 2021
2 parents 5c0ecb0 + 5fb466d commit 118ce60
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 93 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,77 @@
name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: 2.5
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-5.2.x"
- ruby: 2.5
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x"
- ruby: 2.5
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-6.0.x"
- ruby: 2.5
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x"
- ruby: 2.6
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-5.2.x"
- ruby: 2.6
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x"
- ruby: 2.6
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-6.0.x"
- ruby: 2.6
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x"
- ruby: 2.7
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-5.2.x"
- ruby: 2.7
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x"
- ruby: 2.7
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-6.0.x"
- ruby: 2.7
os: ubuntu-latest
gemfile: "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x"
- ruby: 2.7
os: ubuntu-latest
gemfile: Gemfile
allow-failure: true
- ruby: 3.0
os: ubuntu-latest
gemfile: Gemfile
allow-failure: true
- ruby: head
os: ubuntu-latest
gemfile: Gemfile
allow-failure: true
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /home/runner/bundle
key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
restore-keys: |
bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundle install
run: |
gem install bundler -v 2.1.4
bundle config path /home/runner/bundle
bundle config --global gemfile ${{ matrix.gemfile }}
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions CONTRIBUTING.md
@@ -1,8 +1,6 @@
Contributing to Sprockets Rails
=====================

[![Build Status](https://travis-ci.org/rails/sprockets-rails.svg?branch=master)](https://travis-ci.org/rails/sprockets-rails)

Sprockets Rails is work of [many contributors](https://github.com/rails/sprockets-rails/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/rails/sprockets-rails/pulls), [propose features and discuss issues](https://github.com/rails/sprockets-rails/issues).

#### Fork the Project
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gemspec

gem 'actionpack', github: 'rails/rails', branch: 'master'
gem 'railties', github: 'rails/rails', branch: 'master'
gem 'rack', github: 'rack/rack', branch: 'master'
gem 'actionpack', github: 'rails/rails', branch: 'main'
gem 'railties', github: 'rails/rails', branch: 'main'
gem 'rack', github: 'rack/rack', branch: 'master', ref: "e84bb296d1a16b32159608596f1f5a23b2016633"
gem 'sprockets', github: 'rails/sprockets', branch: '3.x'
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -196,5 +196,4 @@ Sprockets Rails is released under the [MIT License](MIT-LICENSE).

## Code Status

* [![Travis CI](https://travis-ci.org/rails/sprockets-rails.svg?branch=master)](http://travis-ci.org/rails/sprockets-rails)
* [![Gem Version](https://badge.fury.io/rb/sprockets-rails.svg)](http://badge.fury.io/rb/sprockets-rails)

0 comments on commit 118ce60

Please sign in to comment.