added db
Some checks failed
arbeitszeitmessung/pipeline/head There was a failure building this commit
GoLang Tests / check and test (push) Failing after 35s

This commit is contained in:
2025-08-21 08:38:57 +02:00
parent a521377f7f
commit dd8df1059e
2 changed files with 11 additions and 19 deletions

View File

@@ -6,6 +6,10 @@ jobs:
testing:
name: check and test
runs-on: ubuntu-latest
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: arbeitszeitmessung
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -31,5 +35,12 @@ jobs:
/go_path
/go_cache
key: go_path-${{ steps.hash-go.outputs.hash }}
- name: Setup DB
uses: harmon758/postgresql-action@v1
with:
postgresql version: "16"
postgresql user: $POSTGRES_USER
postgresql password: $POSTGRES_PASSWORD
postgresql db: $POSTGRES_DB
- name: test
run: make test