Run a postgres 16 docker image in our GitHub workflow
This commit is contained in:
parent
a5b6352a4c
commit
1422c3847c
2 changed files with 12 additions and 0 deletions
11
.github/workflows/go.yml
vendored
11
.github/workflows/go.yml
vendored
|
|
@ -11,6 +11,17 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:16
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: feedvault
|
||||||
|
POSTGRES_PASSWORD: feedvault
|
||||||
|
POSTGRES_DB: feedvault
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
|
@ -31,6 +31,7 @@
|
||||||
"homerouter",
|
"homerouter",
|
||||||
"hotspot",
|
"hotspot",
|
||||||
"huaweimobilewifi",
|
"huaweimobilewifi",
|
||||||
|
"isready",
|
||||||
"jackc",
|
"jackc",
|
||||||
"ldflags",
|
"ldflags",
|
||||||
"leftright",
|
"leftright",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue