File tree 3 files changed +43
-17
lines changed 3 files changed +43
-17
lines changed Original file line number Diff line number Diff line change
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
+ ruby : [ '2.7', '3.0', '3.1', 'head' ]
10
+ rails : [ '6.0', '6.1', '7.0', 'edge' ]
11
+ exclude :
12
+ - ruby : ' 3.1'
13
+ rails : ' 6.0'
14
+ - ruby : ' 3.1'
15
+ rails : ' 6.1'
16
+
17
+ env :
18
+ RAILS_VERSION : ${{ matrix.rails }}
19
+
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+
23
+ - name : Set up Ruby
24
+ uses : ruby/setup-ruby@v1
25
+ with :
26
+ ruby-version : ${{ matrix.ruby }}
27
+ bundler-cache : true
28
+
29
+ - name : Run unit tests
30
+ run : bundle exec rake test:unit
31
+ timeout-minutes : 3
32
+
33
+ - name : Run acceptance tests
34
+ run : bundle exec rake test:acceptance
35
+ timeout-minutes : 10
36
+ if : ${{ matrix.rails != 'edge' && matrix.ruby != 'head' }} # Acceptance tests use `gem install rails && rails new`
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,4 +4,10 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4
4
# Specify your gem's dependencies in spring-watcher-listen.gemspec
5
5
gemspec
6
6
7
- gem "spring" , github : "rails/spring" , branch : :main
7
+ if ENV [ "RAILS_VERSION" ] == "edge"
8
+ gem "activesupport" , github : "rails/rails" , branch : "main"
9
+ elsif ENV [ "RAILS_VERSION" ]
10
+ gem "activesupport" , "~> #{ ENV [ "RAILS_VERSION" ] } .0"
11
+ end
12
+
13
+ gem "spring" , github : "rails/spring" , branch : "main"
You can’t perform that action at this time.
0 commit comments