-
-
Notifications
You must be signed in to change notification settings - Fork 253
68 lines (64 loc) · 1.63 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches:
- '*'
pull_request:
permissions:
contents: read
jobs:
Build:
strategy:
fail-fast: false
matrix:
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby:
- head
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
os:
- ubuntu
- macos
- windows
gemfile:
- no_rails
- rails_6.1
- rails_7
exclude:
- os: macos
ruby: head
- os: windows
ruby: head
- os: windows
gemfile: rails_6.1
- os: windows
gemfile: rails_7
include:
- ruby: '2.7'
gemfile: rails_6 # End of life June 1, 2023
os: ubuntu
- ruby: '2.7'
gemfile: rails_6 # End of life June 1, 2023
os: macos
- ruby: 'truffleruby'
gemfile: no_rails
os: ubuntu
- ruby: 'ucrt'
gemfile: no_rails
os: windows
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
MAKE: make -j 2
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.ruby == 'head'}}
name: Ruby ${{ matrix.ruby }} (${{ matrix.os }}${{ matrix.gemfile != 'no_rails' && ', ' || '' }}${{ matrix.gemfile != 'no_rails' && matrix.gemfile || '' }})
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake