-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 990 Bytes
/
test.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
name: ruby
on: [push]
jobs:
test:
name: Ruby ${{ matrix.ruby }} (${{ matrix.gemfile }})
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
gemfile: [ "rails_6_1", "rails_7_0"]
experimental: [false]
#include:
# - ruby: '2.7'
# gemfile: rails_head
# experimental: true
# - ruby: '3.0'
# gemfile: rails_head
# experimental: true
# - ruby: '3.1'
# gemfile: rails_head
# experimental: true
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: bundle exec rake