ci: removing password from pg service

main
Washington Botelho 2022-05-18 10:42:53 -03:00
parent 60610b818d
commit 5ff11b887b
1 changed files with 16 additions and 11 deletions

View File

@ -10,14 +10,19 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
db:
- mysql
- postgres
ruby: ruby:
- '2.7' - '2.7'
- '3.0' - '3.0'
- '3.1' - '3.1'
db:
- mysql
- postgres
services: services:
env:
DB: ${{ matrix.db }}
mysql: mysql:
env: env:
MYSQL_DATABASE: rating_test MYSQL_DATABASE: rating_test
@ -28,24 +33,24 @@ jobs:
ports: ports:
- 3306:3306 - 3306:3306
postgres: postgres:
image: postgres
env: env:
POSTGRES_DB: rating_user POSTGRES_DB: rating_test
POSTGRES_USER: rating_user POSTGRES_USER: postgres
POSTGRES_PASSWORD: rating_password POSTGRES_HOST_AUTH_METHOD: trust
image: postgres
options: >- options: >-
--health-cmd pg_isready --health-cmd pg_isready
--health-interval 10s --health-interval 10s
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
ports: ports:
- 5432:5432 - 5432:5432
env:
DB: ${{ matrix.db }}
POSTGRES_USER: rating_user
POSTGRES_PASSWORD: rating_password
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3