forked from langalex/couch_potato
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 958 Bytes
/
ruby.yml
File metadata and controls
38 lines (38 loc) · 958 Bytes
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
name: Ruby CI
on:
push:
branches:
- main
- 1.x
pull_request:
branches:
- main
- 1.x
jobs:
test:
runs-on: ubuntu-latest
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7, "jruby"]
gemfile:
- "active_support_5_0"
- "active_support_5_1"
- "active_support_5_2"
- "active_support_6_0"
- "active_support_6_1"
steps:
- uses: actions/checkout@v2
- name: Set up CouchDB
uses: cobot/couchdb-action@v4
with:
couchdb version: "2.3.1"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake spec_ci