File tree Expand file tree Collapse file tree 4 files changed +16
-60
lines changed Expand file tree Collapse file tree 4 files changed +16
-60
lines changed Original file line number Diff line number Diff line change 7
7
name : Ruby specs
8
8
runs-on : ${{ matrix.os }}
9
9
continue-on-error : ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
10
- env :
11
- BUNDLE_JOBS : 4
12
- BUNDLE_RETRY : 3
13
10
strategy :
14
11
fail-fast : false
15
12
matrix :
@@ -34,25 +31,23 @@ jobs:
34
31
gemfile : gemfiles/Gemfile-rails-edge
35
32
experimental : true
36
33
34
+ env :
35
+ BUNDLE_GEMFILE : ${{ matrix.gemfile }}
37
36
steps :
38
37
- uses : actions/checkout@v2
39
- - uses : actions/cache@v2
40
- with :
41
- path : /home/runner/bundle
42
- key : bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
43
- restore-keys : |
44
- bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
45
38
46
39
- uses : ruby/setup-ruby@v1
40
+ if : matrix.ruby >= '2.6'
47
41
with :
48
42
ruby-version : ${{ matrix.ruby }}
43
+ bundler-cache : true
44
+ rubygems : latest
49
45
50
- - name : Bundle install
51
- run : |
52
- gem install bundler -v 2.1.4
53
- bundle config path /home/runner/bundle
54
- bundle config --global gemfile ${{ matrix.gemfile }}
55
- bundle install --jobs 4 --retry 3
46
+ - uses : ruby/setup-ruby@v1
47
+ if : matrix.ruby < '2.6' # Skip updating RubyGems on old rubies
48
+ with :
49
+ ruby-version : ${{ matrix.ruby }}
50
+ bundler-cache : true
56
51
57
52
- name : Ruby specs
58
53
run : bundle exec rake test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
```
10
10
11
11
## Making sure your changes pass all tests
12
- There are a number of automated checks which run on Travis CI when a pull request is created.
12
+ There are a number of automated checks which run on Github Actions when a pull request is created.
13
13
You can run those checks on your own locally to make sure that your changes would not break the CI build.
14
14
15
15
### 1. Check the code for JavaScript style violations
Original file line number Diff line number Diff line change 1
1
# Webpacker
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/rails/webpacker.svg?branch=master )] ( https://travis-ci.org/rails/webpacker )
3
+ [ ![ Ruby specs] ( https://github.com/rails/webpacker/workflows/Ruby%20specs/badge.svg )] ( https://github.com/rails/webpacker/actions )
4
+ [ ![ Jest specs] ( https://github.com/rails/webpacker/workflows/Jest%20specs/badge.svg )] ( https://github.com/rails/webpacker/actions )
5
+ [ ![ Rubocop] ( https://github.com/rails/webpacker/workflows/Rubocop/badge.svg )] ( https://github.com/rails/webpacker/actions )
6
+ [ ![ JS lint] ( https://github.com/rails/webpacker/workflows/JS%20lint/badge.svg )] ( https://github.com/rails/webpacker/actions )
7
+
4
8
[ ![ node.js] ( https://img.shields.io/badge/node-%3E%3D%2010.17.0-brightgreen.svg )] ( https://www.npmjs.com/package/@rails/webpacker )
5
9
[ ![ Gem] ( https://img.shields.io/gem/v/webpacker.svg )] ( https://rubygems.org/gems/webpacker )
6
10
You can’t perform that action at this time.
0 commit comments