forked from hotwired/stimulus-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.22 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: Test against Rails ${{ matrix.rails }} with Ruby ${{ matrix.ruby }}
strategy:
matrix:
rails: [
'6.0.0',
'6.1.0',
'7.0.1',
]
ruby: [
'2.7',
'3.0',
'3.1',
'3.2'
]
exclude:
- rails: '6.0.0'
ruby: '3.1'
- rails: '6.1.0'
ruby: '3.1'
- rails: '6.0.0'
ruby: '3.2'
- rails: '6.1.0'
ruby: '3.2'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false
- name: Install Dependencies
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_PATH: "vendor/bundle-${{ matrix.rails }}"
run: |
sudo apt-get update
sudo apt-get -yqq install libsqlite3-dev chromium-browser
bundle install --jobs 4 --retry 3
- name: Test
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_PATH: "vendor/bundle-${{ matrix.rails }}"
DEFAULT_TEST_EXCLUDE: ""
RAILS_ENV: "test"