File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,17 +12,32 @@ jobs:
1212 DB_PASSWORD : password
1313 SECRET_BASE_KEY : test_key
1414 RAILS_ENV : production
15+ services :
16+ postgres :
17+ image : postgres
18+ env :
19+ POSTGRES_DB : ${{ env.DB_NAME }}
20+ POSTGRES_USER : ${{ env.DB_USER }}
21+ POSTGRES_PASSWORD : ${{ env.DB_PASSWORD }}
22+ ports :
23+ - 5432:5432
24+ options : >-
25+ --health-cmd "pg_isready"
26+ --health-interval 10s
27+ --health-timeout 5s
28+ --health-retries 5
29+ redis :
30+ image : redis
31+ options : >-
32+ --health-cmd "redis-cli ping"
33+ --health-interval 10s
34+ --health-timeout 5s
35+ --health-retries 5
36+ ports :
37+ - 6379:6379
1538 steps :
16- - uses : harmon758/postgresql-action@v1
17- with :
18- postgresql db : ${DB_NAME}
19- postgresql user : ${DB_USER}
20- postgresql password : ${DB_PASSWORD}
21- name : Set up database
22-
2339 - uses : actions/checkout@v4
2440 name : Set up Ruby
25-
2641 - uses : ruby/setup-ruby@v1
2742 with :
2843 bundler-cache : true
Original file line number Diff line number Diff line change 1515 REDIS_TEST_URL : redis://localhost:6379/0
1616 services :
1717 postgres :
18- image : postgres:14
18+ image : postgres
1919 env :
2020 POSTGRES_DB : ${{ env.DB_NAME }}
2121 POSTGRES_USER : ${{ env.DB_USER }}
You can’t perform that action at this time.
0 commit comments