From 1422c3847c48dc0204ea379d72f49f7b81b2e35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Fri, 16 Feb 2024 05:00:44 +0100 Subject: [PATCH] Run a postgres 16 docker image in our GitHub workflow --- .github/workflows/go.yml | 11 +++++++++++ .vscode/settings.json | 1 + 2 files changed, 12 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c821317..35bced8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,6 +11,17 @@ jobs: build: 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: - uses: actions/checkout@v4 diff --git a/.vscode/settings.json b/.vscode/settings.json index a952b70..c4fe476 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,6 +31,7 @@ "homerouter", "hotspot", "huaweimobilewifi", + "isready", "jackc", "ldflags", "leftright",