Skip to content

Commit 1f6eba8

Browse files
committed
Move to github actions
1 parent 5c0ecb0 commit 1f6eba8

File tree

5 files changed

+79
-30
lines changed

5 files changed

+79
-30
lines changed

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
include:
10+
- ruby: 2.5
11+
os: ubuntu-latest
12+
gemfile: "gemfiles/Gemfile.rails-5.2.x"
13+
- ruby: 2.5
14+
os: ubuntu-latest
15+
gemfile: "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x"
16+
- ruby: 2.5
17+
os: ubuntu-latest
18+
gemfile: "gemfiles/Gemfile.rails-6.0.x"
19+
- ruby: 2.5
20+
os: ubuntu-latest
21+
gemfile: "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x"
22+
- ruby: 2.6
23+
os: ubuntu-latest
24+
gemfile: "gemfiles/Gemfile.rails-5.2.x"
25+
- ruby: 2.6
26+
os: ubuntu-latest
27+
gemfile: "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x"
28+
- ruby: 2.6
29+
os: ubuntu-latest
30+
gemfile: "gemfiles/Gemfile.rails-6.0.x"
31+
- ruby: 2.6
32+
os: ubuntu-latest
33+
gemfile: "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x"
34+
- ruby: 2.7
35+
os: ubuntu-latest
36+
gemfile: "gemfiles/Gemfile.rails-5.2.x"
37+
- ruby: 2.7
38+
os: ubuntu-latest
39+
gemfile: "gemfiles/Gemfile.rails-5.2.x.sprockets-4.x"
40+
- ruby: 2.7
41+
os: ubuntu-latest
42+
gemfile: "gemfiles/Gemfile.rails-6.0.x"
43+
- ruby: 2.7
44+
os: ubuntu-latest
45+
gemfile: "gemfiles/Gemfile.rails-6.0.x.sprockets-4.x"
46+
- ruby: 2.7
47+
os: ubuntu-latest
48+
gemfile: Gemfile
49+
allow-failure: true
50+
- ruby: 3.0
51+
os: ubuntu-latest
52+
gemfile: Gemfile
53+
allow-failure: true
54+
- ruby: head
55+
os: ubuntu-latest
56+
gemfile: Gemfile
57+
allow-failure: true
58+
steps:
59+
- uses: actions/checkout@v2
60+
- uses: actions/cache@v2
61+
with:
62+
path: /home/runner/bundle
63+
key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
64+
restore-keys: |
65+
bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
66+
- name: Set up Ruby
67+
uses: ruby/setup-ruby@v1
68+
with:
69+
ruby-version: ${{ matrix.ruby }}
70+
- name: Bundle install
71+
run: |
72+
gem install bundler -v 2.1.4
73+
bundle config path /home/runner/bundle
74+
bundle config --global gemfile ${{ matrix.gemfile }}
75+
bundle install --jobs 4 --retry 3
76+
- name: Run tests
77+
run: bundle exec rake

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Contributing to Sprockets Rails
22
=====================
33

4-
[![Build Status](https://travis-ci.org/rails/sprockets-rails.svg?branch=master)](https://travis-ci.org/rails/sprockets-rails)
5-
64
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).
75

86
#### Fork the Project

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33
gemspec
44

5-
gem 'actionpack', github: 'rails/rails', branch: 'master'
6-
gem 'railties', github: 'rails/rails', branch: 'master'
5+
gem 'actionpack', github: 'rails/rails', branch: 'main'
6+
gem 'railties', github: 'rails/rails', branch: 'main'
77
gem 'rack', github: 'rack/rack', branch: 'master'
88
gem 'sprockets', github: 'rails/sprockets', branch: '3.x'

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,4 @@ Sprockets Rails is released under the [MIT License](MIT-LICENSE).
196196

197197
## Code Status
198198

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

0 commit comments

Comments
 (0)