parent
c17843106a
commit
24be13ee63
1 changed files with 66 additions and 65 deletions
|
@ -12,9 +12,9 @@ jobs:
|
||||||
container: node:20-bullseye
|
container: node:20-bullseye
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
# Label used to access the service container
|
||||||
mydb:
|
mydb:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
container_name: mydb
|
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: alice
|
POSTGRES_USER: alice
|
||||||
POSTGRES_PASSWORD: iEx4Vj7zBb6
|
POSTGRES_PASSWORD: iEx4Vj7zBb6
|
||||||
|
@ -23,6 +23,7 @@ jobs:
|
||||||
# - 5432:5432
|
# - 5432:5432
|
||||||
options: |
|
options: |
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
|
--name mydb
|
||||||
--hostname mydb
|
--hostname mydb
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
|
@ -30,7 +31,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: Set up Node.js
|
# - name: Set up Node.js
|
||||||
# uses: actions/setup-node@v2
|
# uses: actions/setup-node@v2
|
||||||
|
|
Loading…
Add table
Reference in a new issue