-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (36 loc) · 991 Bytes
/
tests.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
name: tests
on:
push:
pull_request:
schedule:
- cron: '45 2 * * *'
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- '2.6'
- '2.7'
gemfile:
- gemfiles/rails_5.1_active_admin_1.x.gemfile
- gemfiles/rails_5.x_active_admin_1.x.gemfile
- gemfiles/rails_5.x_active_admin_2.x.gemfile
- gemfiles/rails_6.x_active_admin_2.x.gemfile
include:
- ruby-version: '3.0'
gemfile: gemfiles/rails_6.x_active_admin_2.x.gemfile
- ruby-version: '3.0'
gemfile: gemfiles/rails_6.x_active_admin_3.x.gemfile
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec