feature/#524-pipline #15

Merged
on.nemtina merged 85 commits from feature/#524-pipline into master 2024-12-23 16:39:46 +05:00
3 changed files with 10 additions and 5 deletions
Showing only changes of commit ecd8b0020e - Show all commits

View File

@ -2,6 +2,13 @@ name: Unit tests
run-name: ${{ gitea.actor }} is testing
on: push
env:
registry: my_registry_name
# Not sure these are actually being passed down to rails, set them as the default in database.yml
DB_HOST: localhost
DB_USERNAME: postgres
DB_PASSWORD: postgres
jobs:
test:
runs-on: ubuntu-latest
@ -14,8 +21,6 @@ jobs:
image: postgres
# Provide the password for postgres
env:
POSTGRES_HOST: postgres
POSTGRES_DB: persistence
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started

View File

@ -1,6 +1,6 @@
{
"DbConnection": {
"Host": "postgres",
"Host": "localhost",
"Port": 5442,
"Username": "postgres",
"Password": "postgres"

View File

@ -24,8 +24,8 @@ public class WebAppFactoryFixture : WebApplicationFactory<Program>
config.AddJsonFile("appsettings.Tests.json");
var dbConnection = config.Build().GetSection("DbConnection").Get<DbConnection>()!;
//connectionString = dbConnection.GetConnectionString();
connectionString = "Host=postgres;Port=5442;Username=postgres;Password=postgres;Database=persistence";
connectionString = dbConnection.GetConnectionString();
//connectionString = "Host=postgres;Port=5442;Username=postgres;Password=postgres;Database=persistence";
});
builder.ConfigureServices(services =>