forked from que-rb/que
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.15 KB
/
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
41
42
43
name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: [2.5.x, 2.6.x, 2.7.x]
gemfile: ["4.2", "5.2", "6.0"]
postgres_version: [9, 10, 11, 12]
exclude:
- { gemfile: "4.2", ruby_version: "2.7.x" }
services:
db:
image: postgres:${{ matrix.postgres_version }}
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Test with Rake
env:
PGHOST: 127.0.0.1
PGUSER: postgres
BUNDLE_GEMFILE: spec/gemfiles/Gemfile.${{ matrix.gemfile }}
run: |
sudo apt-get -yqq install libpq-dev postgresql-client
createdb que-test
gem install bundler
bundle install --jobs 4 --retry 3
USE_RAILS=true bundle exec rake test
bundle exec rake test