-
Notifications
You must be signed in to change notification settings - Fork 39
32 lines (30 loc) · 994 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
31
32
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
ruby: [2.6]
active_record: [5.2, 6.0]
dry_types: [1.0, 1.2]
include:
- ruby: 2.7
active_record: 6.1
dry_types: 1.5
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
- ruby: '3.0'
active_record: 6.1
dry_types: 1.5
- ruby: 3.1
active_record: 7.0.1
dry_types: 1.5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: ACTIVERECORD=${{ matrix.active_record}} DRY_TYPES=${{ matrix.dry_types }} bundle install
- run: ACTIVERECORD=${{ matrix.active_record}} DRY_TYPES=${{ matrix.dry_types }} bundle exec rake