-
Notifications
You must be signed in to change notification settings - Fork 39
51 lines (51 loc) · 1.32 KB
/
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
42
43
44
45
46
47
48
49
50
51
name: test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
rails: ["rails5", "rails6", "rails7", "rails7.1"]
database: ["sqlite", "postgres", "mysql"]
exclude:
- ruby: "3.0"
rails: "rails5"
- ruby: "3.1"
rails: "rails5"
- ruby: "3.2"
rails: "rails5"
- ruby: "3.3"
rails: "rails5"
services:
postgres:
image: styriadigital/postgres_hstore:10
env:
POSTGRES_USER: search_cop
POSTGRES_PASSWORD: secret
POSTGRES_DB: search_cop
ports:
- 5432:5432
mysql:
image: mysql
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: ""
MYSQL_DATABASE: search_cop
ports:
- 3306:3306
env:
BUNDLE_PATH: ../vendor/bundle
steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: test
env:
DATABASE: ${{ matrix.database }}
run: |
bundle config set --local gemfile "gemfiles/${{ matrix.rails }}.gemfile"
bundle install
bundle exec rake test