forked from stas/jsonapi.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 847 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on: [push, pull_request]
jobs:
ruby_rails_test_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.4, 2.7, '3.0']
rails: ['5', '6.0', '6']
exclude:
- ruby: 2.4
rails: 6
- ruby: '3.0'
rails: 5
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Runs code QA and tests
env:
RAILS_VERSION: ~> ${{ matrix.rails }}
run: |
rm -rf Gemfile.lock
sudo apt-get update
sudo apt-get install libsqlite3-dev
echo $RAILS_VERSION | grep -q '4' && export SQLITE3_VERSION='~> 1.3.6'
echo $RAILS_VERSION | grep -q '4' && RUBOCOP_VERSION='~> 0.77'
bundle
bundle exec rake