Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to github actions #475

Merged
merged 2 commits into from Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)