mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 23:50:00 -07:00
(partially tested) fix pg tests, add postgres service in workflows
This commit is contained in:
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
@@ -26,6 +26,18 @@ jobs:
|
||||
redis:
|
||||
image: "eqalpha/keydb"
|
||||
ports: [ "6379:6379" ]
|
||||
postgres:
|
||||
image: "postgres:latest"
|
||||
env:
|
||||
POSTGRES_DB: test
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
ports: [ "5432:5432" ]
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
steps:
|
||||
- uses: "actions/checkout@v3"
|
||||
- uses: "actions/setup-go@v3"
|
||||
|
||||
Reference in New Issue
Block a user