mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Use the builtin postgres user already defined in the github image
It hopefully requires no password
This commit is contained in:
parent
853e29dd83
commit
d7eadd9294
1 changed files with 1 additions and 3 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
if: matrix.db-type == 'sqlite'
|
if: matrix.db-type == 'sqlite'
|
||||||
|
|
||||||
- name: Set Database env for PostgreSQL
|
- name: Set Database env for PostgreSQL
|
||||||
run: echo "DATABASE_URL=postgresql://runner:@127.0.0.1:5432/partdb?serverVersion=14&charset=utf8" >> $GITHUB_ENV
|
run: echo "DATABASE_URL=postgresql://postgres:@127.0.0.1:5432/partdb?serverVersion=14&charset=utf8" >> $GITHUB_ENV
|
||||||
if: matrix.db-type == 'postgres'
|
if: matrix.db-type == 'postgres'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -60,8 +60,6 @@ jobs:
|
||||||
- name: Start PostgreSQL
|
- name: Start PostgreSQL
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl start postgresql.service
|
sudo systemctl start postgresql.service
|
||||||
pg_isready
|
|
||||||
sudo -u postgres createuser -s -d -r -w runner
|
|
||||||
if: matrix.db-type == 'postgres'
|
if: matrix.db-type == 'postgres'
|
||||||
|
|
||||||
#- name: Setup MySQL
|
#- name: Setup MySQL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue