Skip to content

Commit 9aeea2a

Browse files
authored
Merge pull request #78 from rails/migrate-to-gha
Switch to GitHub actions given the pending travis-ci.org shutdown
2 parents 7bdfa66 + 7d70955 commit 9aeea2a

File tree

5 files changed

+79
-159
lines changed

5 files changed

+79
-159
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+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
gemfile:
14+
- '4-2-stable'
15+
- '5-0-stable'
16+
- '5-1-stable'
17+
- '5-2-stable'
18+
- '6-0-stable'
19+
- '6-1-stable'
20+
- 'edge'
21+
ruby:
22+
- '2.4'
23+
- '2.5'
24+
- '2.6'
25+
- '2.7'
26+
- '3.0'
27+
exclude:
28+
- gemfile: '4-2-stable'
29+
ruby: '2.5'
30+
- gemfile: '4-2-stable'
31+
ruby: '2.6'
32+
- gemfile: '4-2-stable'
33+
ruby: '2.7'
34+
- gemfile: '4-2-stable'
35+
ruby: '3.0'
36+
- gemfile: '5-0-stable'
37+
ruby: '2.7'
38+
- gemfile: '5-0-stable'
39+
ruby: '3.0'
40+
- gemfile: '5-1-stable'
41+
ruby: '2.7'
42+
- gemfile: '5-1-stable'
43+
ruby: '3.0'
44+
- gemfile: '5-2-stable'
45+
ruby: '2.7'
46+
- gemfile: '5-2-stable'
47+
ruby: '3.0'
48+
- gemfile: '6-0-stable'
49+
ruby: '2.4'
50+
- gemfile: '6-1-stable'
51+
ruby: '2.4'
52+
- gemfile: 'edge'
53+
ruby: '2.4'
54+
- gemfile: 'edge'
55+
ruby: '2.5'
56+
- gemfile: 'edge'
57+
ruby: '2.6'
58+
fail-fast: false
59+
60+
runs-on: ubuntu-latest
61+
name: ${{ matrix.ruby }} rails-${{ matrix.gemfile }}
62+
63+
steps:
64+
- uses: actions/checkout@v2
65+
66+
- uses: ruby/setup-ruby@v1
67+
with:
68+
ruby-version: ${{ matrix.ruby }}
69+
bundler-cache: true
70+
bundler: ${{ fromJSON('["2", "1"]')[matrix.ruby == '2.4'] }}
71+
72+
- run: bundle exec rake test
73+
74+
env:
75+
BUNDLE_GEMFILE: gemfiles/Gemfile-${{ matrix.gemfile }}
76+
BUNDLE_JOBS: 4
77+
BUNDLE_RETRY: 3

.travis.yml

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

gemfiles/Gemfile-4-0-stable

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

gemfiles/Gemfile-4-1-stable

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

gemfiles/Gemfile-edge

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ source "https://rubygems.org"
22

33
gemspec path: ".."
44

5-
gem "rails", github: "rails/rails", branch: "master"
6-
gem "arel", github: "rails/arel", branch: "master"
5+
gem "rails", github: "rails/rails", branch: "main"
6+
gem "activerecord", github: "rails/rails", branch: "main"

0 commit comments

Comments
 (0)