forked from hotwired/turbo-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.25 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
name: CI
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
ruby-version:
- "2.7"
- "3.0"
rails-version:
- "6.1"
- "main"
continue-on-error: [ false ]
# Disabled until minitest relaxes its upper bound: https://github.com/seattlerb/minitest/pull/862
# > minitest-5.14.2 requires ruby version < 3.1, >= 2.2, which is incompatible with the current version, ruby 3.1.0p-1
#
# include:
# - ruby-version: head
# continue-on-error: true
env:
RAILS_VERSION: "${{ matrix.rails-version }}"
name: ${{ format('Tests (Ruby {0}, Rails {1})', matrix.ruby-version, matrix.rails-version) }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error }}
steps:
- uses: actions/checkout@v1
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: |
bin/rails db:test:prepare
bin/test test/**/*_test.rb
- name: Fail when generated changes are not checked-in
run: |
git update-index --refresh
git diff-index --quiet HEAD --