|
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:
|
16 | 13 | os: [ubuntu-latest]
|
17 |
| - node: [14] |
18 |
| - ruby: [ |
19 |
| - 2.7, |
20 |
| - 3.0 |
21 |
| - ] |
22 |
| - gemfile: [ |
23 |
| - "gemfiles/Gemfile-rails.5.2.x", |
24 |
| - "gemfiles/Gemfile-rails.6.0.x", |
25 |
| - "gemfiles/Gemfile-rails.6.1.x" |
26 |
| - ] |
| 14 | + ruby: |
| 15 | + - 2.7 |
| 16 | + - "3.0" |
| 17 | + gemfile: |
| 18 | + - gemfiles/Gemfile-rails.5.2.x |
| 19 | + - gemfiles/Gemfile-rails.6.0.x |
| 20 | + - gemfiles/Gemfile-rails.6.1.x |
27 | 21 | exclude:
|
28 |
| - - ruby: 2.4 |
29 |
| - gemfile: gemfiles/Gemfile-rails.6.0.x |
30 |
| - - ruby: 2.4 |
31 |
| - gemfile: gemfiles/Gemfile-rails.6.1.x |
32 | 22 | - ruby: 2.5
|
33 | 23 | gemfile: gemfiles/Gemfile-rails.6.1.x
|
34 |
| - - ruby: 3.0 |
| 24 | + - ruby: "3.0" |
35 | 25 | gemfile: gemfiles/Gemfile-rails.5.2.x
|
36 | 26 | experimental: [false]
|
37 | 27 | include:
|
38 | 28 | - ruby: 2.7
|
39 | 29 | os: ubuntu-latest
|
40 | 30 | gemfile: gemfiles/Gemfile-rails-edge
|
41 | 31 | experimental: true
|
42 |
| - - ruby: 3.0 |
| 32 | + - ruby: "3.0" |
43 | 33 | os: ubuntu-latest
|
44 | 34 | gemfile: gemfiles/Gemfile-rails-edge
|
45 | 35 | experimental: true
|
46 | 36 |
|
| 37 | + env: |
| 38 | + BUNDLE_GEMFILE: ${{ matrix.gemfile }} |
47 | 39 | steps:
|
48 | 40 | - uses: actions/checkout@v2
|
49 |
| - - uses: actions/cache@v2 |
50 |
| - with: |
51 |
| - path: /home/runner/bundle |
52 |
| - key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }} |
53 |
| - restore-keys: | |
54 |
| - bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems- |
55 |
| -
|
56 |
| - - name: Use Node.js ${{ matrix.node }} |
57 |
| - uses: actions/setup-node@v1 |
58 |
| - with: |
59 |
| - node-version: ${{ matrix.node }} |
60 |
| - |
61 |
| - - name: Install yarn maybe |
62 |
| - run: which yarn || npm install -g yarn |
63 | 41 |
|
64 | 42 | - uses: ruby/setup-ruby@v1
|
65 | 43 | with:
|
66 | 44 | ruby-version: ${{ matrix.ruby }}
|
67 |
| - |
68 |
| - - name: Bundle install |
69 |
| - run: | |
70 |
| - gem install bundler -v 2.1.4 |
71 |
| - bundle config path /home/runner/bundle |
72 |
| - bundle config --global gemfile ${{ matrix.gemfile }} |
73 |
| - bundle install --jobs 4 --retry 3 |
| 45 | + bundler-cache: true # Run "bundle install", and cache the result automatically. |
74 | 46 |
|
75 | 47 | - name: Ruby specs
|
76 |
| - run: bundle exec rake test |
| 48 | + run: bundle exec rake |
0 commit comments