-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 968 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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rubocop
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
ruby-version: ['2.7', '3.0', '3.1', '3.2']
rails-version: ['6.1', '7.0', '7.1']
runs-on: ${{ matrix.os }}
env:
RAILS_VERSION: "${{ matrix.rails-version }}"
name: ${{ format('test ({0}, Ruby {1}, Rails {2})', matrix.os, matrix.ruby-version, matrix.rails-version) }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rspec