forked from citusdata/activerecord-multi-tenant
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 831 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
33
34
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '2.7'
gemfile:
- rails_6.1
- active_record_6.1
prepared_statements: [true, false]
name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }} ${{ (matrix.prepared_statements && 'w/ prepared statements') || '' }}
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
PREPARED_STATEMENTS: ${{ matrix.prepared_statements && '1' }}
steps:
- uses: actions/checkout@v2
- run: |
docker-compose up -d
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: |
bundle exec rake spec