Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet 8.0
uses: actions/setup-dotnet@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: |
8.0.x
10.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet 8.0
uses: actions/setup-dotnet@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: |
8.0.x
10.0.x
- name: Build and Test
run: ./Build.ps1
shell: pwsh
Expand Down
2 changes: 0 additions & 2 deletions Respawn.DatabaseTests/EmptyDbTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using System.Threading.Tasks;
using Microsoft.Data.SqlClient;
using Respawn.Graph;
using Testcontainers.MsSql;
using Xunit;
using Xunit.Abstractions;

namespace Respawn.DatabaseTests
{
using System;
using System.Linq;
using NPoco;
using Shouldly;

Expand Down
6 changes: 0 additions & 6 deletions Respawn.DatabaseTests/MySqlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,5 @@ public async Task ShouldResetSequencesAndIdentities()
_database.ExecuteScalar<int>("SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'MySqlTests' AND TABLE_NAME = 'a';").ShouldBe(1);
}

public void Dispose()
{
_connection.Close();
_connection.Dispose();
}

}
}
24 changes: 12 additions & 12 deletions Respawn.DatabaseTests/PostgresTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task DisposeAsync()
await _sqlContainer.DisposeAsync();
}

[SkipOnCI]
[Fact]
public async Task ShouldDeleteData()
{
await _database.ExecuteAsync("create table \"foo\" (value int)");
Expand All @@ -86,7 +86,7 @@ public async Task ShouldDeleteData()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM \"foo\"").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldIgnoreTables()
{
await _database.ExecuteAsync("create table foo (Value int)");
Expand All @@ -108,7 +108,7 @@ public async Task ShouldIgnoreTables()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM bar").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldIgnoreTablesIfSchemaSpecified()
{
await _database.ExecuteAsync("create schema eggs");
Expand All @@ -131,7 +131,7 @@ public async Task ShouldIgnoreTablesIfSchemaSpecified()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM eggs.bar").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldIncludeTables()
{
await _database.ExecuteAsync("create table foo (Value int)");
Expand All @@ -153,7 +153,7 @@ public async Task ShouldIncludeTables()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM bar").ShouldBe(100);
}

[SkipOnCI]
[Fact]
public async Task ShouldIncludeTablesIfSchemaSpecified()
{
await _database.ExecuteAsync("create schema eggs");
Expand All @@ -176,7 +176,7 @@ public async Task ShouldIncludeTablesIfSchemaSpecified()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM eggs.bar").ShouldBe(100);
}

[SkipOnCI]
[Fact]
public async Task ShouldHandleRelationships()
{
await _database.ExecuteAsync("create table foo (value int, primary key (value))");
Expand Down Expand Up @@ -209,7 +209,7 @@ public async Task ShouldHandleRelationships()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM baz").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldHandleCircularRelationships()
{
await _database.ExecuteAsync("create table parent (id int primary key, childid int NULL)");
Expand Down Expand Up @@ -244,7 +244,7 @@ public async Task ShouldHandleCircularRelationships()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM child").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldHandleSelfRelationships()
{
await _database.ExecuteAsync("create table foo (id int primary key, parentid int NULL)");
Expand Down Expand Up @@ -272,7 +272,7 @@ public async Task ShouldHandleSelfRelationships()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM foo").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldHandleComplexCycles()
{
await _database.ExecuteAsync("create table a (id int primary key, b_id int NULL)");
Expand Down Expand Up @@ -326,7 +326,7 @@ public async Task ShouldHandleComplexCycles()
}


[SkipOnCI]
[Fact]
public async Task ShouldExcludeSchemas()
{
await _database.ExecuteAsync("create schema a");
Expand All @@ -350,7 +350,7 @@ public async Task ShouldExcludeSchemas()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM b.bar").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldIncludeSchemas()
{
await _database.ExecuteAsync("create schema a");
Expand All @@ -374,7 +374,7 @@ public async Task ShouldIncludeSchemas()
_database.ExecuteScalar<int>("SELECT COUNT(1) FROM b.bar").ShouldBe(0);
}

[SkipOnCI]
[Fact]
public async Task ShouldResetSequencesAndIdentities()
{
await _database.ExecuteAsync("CREATE TABLE a (id INT GENERATED ALWAYS AS IDENTITY, value SERIAL)");
Expand Down
2 changes: 1 addition & 1 deletion Respawn.DatabaseTests/Respawn.DatabaseTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<NoWarn>$(NoWarn);NU1902;NU1903;NU1904</NoWarn>
</PropertyGroup>
<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion Respawn.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Build.ps1 = Build.ps1
.github\workflows\ci.yml = .github\workflows\ci.yml
Directory.Build.props = Directory.Build.props
docker-compose.yml = docker-compose.yml
informix-server\my_post.sh = informix-server\my_post.sh
informix-server\onconfig = informix-server\onconfig
Push.ps1 = Push.ps1
Expand Down
68 changes: 0 additions & 68 deletions docker-compose.yml

This file was deleted.