added db
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user