Проверка тестов
Some checks failed
Run Tests / run_tests (push) Failing after 1m38s

This commit is contained in:
Olga Nemt 2024-12-18 12:51:04 +05:00
parent 031b6caef4
commit 25a631a42d
2 changed files with 17 additions and 17 deletions

View File

@ -7,16 +7,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
steps: steps:
# - name: Checkout Codebase - name: Checkout Codebase
# uses: actions/checkout@v4 uses: actions/checkout@v4
# - name: Setup dotnet - name: Setup dotnet
# uses: actions/setup-dotnet@v4 uses: actions/setup-dotnet@v4
# with: with:
# dotnet-version: 8.0.x dotnet-version: 8.0.x
# - name: Check out repository code - name: Check out repository code
# uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Configure and install postgres - name: Configure and install postgres
run: | run: |
@ -27,8 +27,6 @@ jobs:
service postgresql start service postgresql start
sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres'; SELECT version();" sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres'; SELECT version();"
sudo -u postgres -s psql -U postgres -d postgres -c "CREATE DATABASE persistence WITH OWNER 'postgres' ENCODING 'UTF8' LC_COLLATE = 'ru_RU.UTF-8' LC_CTYPE = 'ru_RU.UTF-8' TEMPLATE = template0" sudo -u postgres -s psql -U postgres -d postgres -c "CREATE DATABASE persistence WITH OWNER 'postgres' ENCODING 'UTF8' LC_COLLATE = 'ru_RU.UTF-8' LC_CTYPE = 'ru_RU.UTF-8' TEMPLATE = template0"
# - uses: pdm-project/setup-pdm@v3 # - uses: pdm-project/setup-pdm@v3
# with: # with:
# python-version: 3.10 # python-version: 3.10
@ -40,11 +38,12 @@ jobs:
# - name: Run integration tests - name: Run integration tests
# env: env:
# DB_HOST: localhost DB_HOST: localhost
# DB_USER: postgres DB_USER: postgres
# DB_PASSWORD: postgres DB_NAME: persistence
DB_PASSWORD: postgres
# run: | run: |
# dotnet test DD.Persistence.IntegrationTests dotnet test DD.Persistence.IntegrationTests

View File

@ -2,6 +2,7 @@
"DbConnection": { "DbConnection": {
"Host": "localhost", "Host": "localhost",
"Port": 5432, "Port": 5432,
"Database": "persistence",
"Username": "postgres", "Username": "postgres",
"Password": "postgres" "Password": "postgres"
}, },