File tree 1 file changed +16
-4
lines changed 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,27 @@ jobs:
21
21
matrix :
22
22
ruby-version : ['2.6', '2.7', '3.0']
23
23
24
+ services :
25
+ postgres :
26
+ image : postgres
27
+ env :
28
+ POSTGRES_PASSWORD : postgres
29
+ options : >-
30
+ --health-cmd pg_isready
31
+ --health-interval 10s
32
+ --health-timeout 5s
33
+ --health-retries 5
34
+ ports :
35
+ - 5432:5432
36
+
24
37
steps :
25
38
- uses : actions/checkout@v2
26
39
- name : Set up Ruby
27
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
- # uses: ruby/setup-ruby@v1
30
- uses : ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
40
+ uses : ruby/setup-ruby@v1
31
41
with :
32
42
ruby-version : ${{ matrix.ruby-version }}
33
43
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
34
44
- name : Run tests
35
45
run : bundle exec rake
46
+ env :
47
+ POSTGRES_URL : postgres://postgres:postgres@localhost:5432
You can’t perform that action at this time.
0 commit comments