forked from hotwired/turbo-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.18 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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
strategy:
fail-fast: false
matrix:
rails: [ "6.1", "7.0", "7.1" ]
ruby: [ "2.7", "3.0", "3.1", "3.2" ]
allow-fail: [ false ]
include:
- { ruby: "2.7", rails: "main", allow-fail: true }
- { ruby: "3.2", rails: "main", allow-fail: true }
env:
RAILS_VERSION: "${{ matrix.rails }}"
name: ${{ format('Tests (Ruby {0}, Rails {1})', matrix.ruby, matrix.rails) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler-cache: true
- name: Run tests
id: test
run: bundle exec rake TESTOPT=-vdc
continue-on-error: ${{ matrix.allow-fail || false }}
- name: >-
Test outcome: ${{ steps.test.outcome }}
# every step must define a `uses` or `run` key
run: echo NOOP
- name: Fail when generated changes are not checked-in
run: |
git update-index --refresh
git diff-index --quiet HEAD --