File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@master
10+ - name : Setup Ruby
11+ uses : actions/setup-ruby@v1
12+ with :
13+ ruby-version : 3.0.x
14+ - uses : actions/cache@v2
15+ with :
16+ path : vendor/bundle
17+ key : gems-build-rails-main-ruby-2.7.x-${{ hashFiles('**/Gemfile.lock') }}
18+ - name : Lint with Rubocop
19+ run : |
20+ gem install bundler:2.2.9
21+ bundle config path vendor/bundle
22+ bundle install --jobs 4 --retry 3
23+ bundle exec rubocop
24+ test :
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ ruby_version : ["2.6", "2.7", "3.0"]
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v2
32+ - name : Set up Ruby
33+ uses : ruby/setup-ruby@v1
34+ with :
35+ ruby-version : ${{ matrix.ruby_version }}
36+ - name : Install dependencies
37+ run : bundle install --jobs 4 --retry 3
38+ - name : Run tests
39+ run : bundle exec rake
You can’t perform that action at this time.
0 commit comments