Skip to content

Commit 32167e7

Browse files
committed
Edit github action for postgreSQL
1 parent 341f977 commit 32167e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
- 5432:5432
2929

3030
steps:
31+
- name: Start PostgreSQL on Ubuntu
32+
run: |
33+
sudo systemctl start postgresql.service
34+
pg_isready
35+
36+
- name: Create additional user
37+
run: |
38+
sudo -u postgres psql --command="CREATE USER postgres PASSWORD 'password'" --command="\du"
3139
- uses: actions/checkout@v4
3240
- name: Setup .NET
3341
uses: actions/setup-dotnet@v4

0 commit comments

Comments
 (0)