Skip to content

Commit c3255b8

Browse files
committed
Updated GH Actions config.
1 parent 01db1e9 commit c3255b8

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ on: [push, pull_request]
44

55
jobs:
66
ruby_rails_test_matrix:
7-
runs-on: ubuntu-18.04
7+
runs-on: ubuntu-latest
88

99
strategy:
1010
matrix:
11-
ruby: [2.4, 2.6]
12-
rails: [4, 5, 6]
11+
ruby: [2.4, 2.7]
12+
rails: [5, 6]
1313
exclude:
1414
- ruby: 2.4
1515
rails: 6
1616

1717
steps:
18-
- uses: actions/checkout@master
18+
- uses: actions/checkout@v2
1919

20-
- name: Sets up the environment
21-
uses: actions/setup-ruby@v1
20+
- uses: ruby/setup-ruby@v1
2221
with:
2322
ruby-version: ${{ matrix.ruby }}
23+
bundler-cache: true
2424

2525
- name: Runs code QA and tests
2626
env:
@@ -29,8 +29,7 @@ jobs:
2929
rm -rf Gemfile.lock
3030
sudo apt-get update
3131
sudo apt-get install libsqlite3-dev
32-
gem uninstall bundler -a --force
33-
gem install bundler -v '~> 1'
3432
echo $RAILS_VERSION | grep -q '4' && export SQLITE3_VERSION='~> 1.3.6'
33+
echo $RAILS_VERSION | grep -q '4' && RUBOCOP_VERSION='~> 0.77'
3534
bundle
36-
rake
35+
bundle exec rake

0 commit comments

Comments
 (0)