File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,27 @@ jobs:
2121 matrix :
2222 ruby-version : ['2.6', '2.7', '3.0']
2323
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+
2437 steps :
2538 - uses : actions/checkout@v2
2639 - 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
3141 with :
3242 ruby-version : ${{ matrix.ruby-version }}
3343 bundler-cache : true # runs 'bundle install' and caches installed gems automatically
3444 - name : Run tests
3545 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