|
6 | 6 | lint: |
7 | 7 | runs-on: ubuntu-latest |
8 | 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.32 |
21 | | - bundle config path vendor/bundle |
22 | | - bundle install --jobs 4 --retry 3 |
23 | | - bundle exec rubocop |
| 9 | + - uses: actions/checkout@v3 |
| 10 | + - name: Setup Ruby |
| 11 | + uses: ruby/setup-ruby@v1 |
| 12 | + with: |
| 13 | + ruby-version: '3.0' |
| 14 | + bundler-cache: true |
| 15 | + - name: Lint with Rubocop |
| 16 | + run: | |
| 17 | + bundle install |
| 18 | + bundle exec rubocop |
24 | 19 | test: |
25 | 20 | strategy: |
26 | 21 | fail-fast: false |
27 | 22 | matrix: |
28 | | - ruby_version: ["2.6", "2.7", "3.0"] |
| 23 | + ruby_version: ["2.7", "3.0"] |
29 | 24 | runs-on: ubuntu-latest |
30 | 25 | 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 |
| 26 | + - uses: actions/checkout@v3 |
| 27 | + - name: Setup Ruby |
| 28 | + uses: ruby/setup-ruby@v1 |
| 29 | + with: |
| 30 | + ruby-version: ${{ matrix.ruby_version }} |
| 31 | + bundler-cache: true |
| 32 | + - name: Install dependencies |
| 33 | + run: bundle install |
| 34 | + - name: Run tests |
| 35 | + run: bundle exec rake |
40 | 36 | docs-coverage: |
41 | 37 | runs-on: ubuntu-latest |
42 | 38 | steps: |
43 | | - - uses: actions/checkout@master |
44 | | - - name: Setup Ruby |
45 | | - uses: actions/setup-ruby@v1 |
46 | | - with: |
47 | | - ruby-version: 3.0.x |
48 | | - - uses: actions/cache@v2 |
49 | | - with: |
50 | | - path: vendor/bundle |
51 | | - key: gems-build-rails-main-ruby-2.7.x-${{ hashFiles('**/Gemfile.lock') }} |
52 | | - - name: Verify docs coverage |
53 | | - run: | |
54 | | - gem install bundler:2.2.32 |
55 | | - bundle config path vendor/bundle |
56 | | - bundle install --jobs 4 --retry 3 |
57 | | - bundle exec rake docs:coverage |
| 39 | + - uses: actions/checkout@v3 |
| 40 | + - name: Setup Ruby |
| 41 | + uses: ruby/setup-ruby@v1 |
| 42 | + with: |
| 43 | + ruby-version: '3.0' |
| 44 | + bundler-cache: true |
| 45 | + - name: Verify docs coverage |
| 46 | + run: | |
| 47 | + bundle install |
| 48 | + bundle exec rake docs:coverage |
58 | 49 | tests-coverage: |
59 | 50 | runs-on: ubuntu-latest |
60 | 51 | steps: |
61 | | - - uses: actions/checkout@master |
62 | | - - name: Setup Ruby |
63 | | - uses: actions/setup-ruby@v1 |
64 | | - with: |
65 | | - ruby-version: 3.0.x |
66 | | - - uses: actions/cache@v2 |
67 | | - with: |
68 | | - path: vendor/bundle |
69 | | - key: gems-build-rails-main-ruby-2.7.x-${{ hashFiles('**/Gemfile.lock') }} |
70 | | - - name: Verify all rules have test coverage |
71 | | - run: | |
72 | | - gem install bundler:2.2.32 |
73 | | - bundle config path vendor/bundle |
74 | | - bundle install --jobs 4 --retry 3 |
75 | | - bundle exec rake tests:coverage |
| 52 | + - uses: actions/checkout@v3 |
| 53 | + - name: Setup Ruby |
| 54 | + uses: ruby/setup-ruby@v1 |
| 55 | + with: |
| 56 | + ruby-version: '3.0' |
| 57 | + bundler-cache: true |
| 58 | + - name: Verify all rules have test coverage |
| 59 | + run: | |
| 60 | + bundle install |
| 61 | + bundle exec rake tests:coverage |
0 commit comments