Skip to content
Open
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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
with:
dotnet-version: 10.0.x

- name: .NET 11.0
uses: actions/setup-dotnet@v5
with:
dotnet-version: 11.0.x
dotnet-quality: preview

- name: Build
run: |
try {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<SkipSourceLink>true</SkipSourceLink>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net11.0</TargetFrameworks>
<AssemblyName>FirebirdSql.Data.FirebirdClient</AssemblyName>
<RootNamespace>FirebirdSql.Data</RootNamespace>
<SignAssembly>true</SignAssembly>
Expand Down
23 changes: 14 additions & 9 deletions tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ $FirebirdConfiguration = @{
}

$frameworkVersion = 'net10.0'
$providerTestsFrameworkVersions = @('net10.0', 'net11.0')
$testsBaseDir = "$baseDir\src\FirebirdSql.Data.FirebirdClient.Tests"
$testsProviderDir = "$testsBaseDir\bin\$Configuration\$frameworkVersion"

$firebirdProcess = $null

Expand Down Expand Up @@ -59,7 +59,9 @@ function Prepare() {
echo "Extracting $fbDownloadName"
7z x -bsp0 -bso0 $fbDownloadName
rm $fbDownloadName
cp -Recurse -Force .\* $testsProviderDir
foreach ($providerTestsFrameworkVersion in $providerTestsFrameworkVersions) {
cp -Recurse -Force .\* "$testsBaseDir\bin\$Configuration\$providerTestsFrameworkVersion"
}

ni firebird.log -ItemType File | Out-Null

Expand Down Expand Up @@ -120,13 +122,16 @@ function Tests-FirebirdClient-Embedded() {
Tests-FirebirdClient 'Embedded' $False 'Disabled'
}
function Tests-FirebirdClient($serverType, $compression, $wireCrypt) {
pushd $testsProviderDir
try {
.\FirebirdSql.Data.FirebirdClient.Tests.exe --labels=All "--where=(ServerType==$serverType && Compression==$compression && WireCrypt==$wireCrypt) || Category==NoServer"
Check-ExitCode
}
finally {
popd
foreach ($providerTestsFrameworkVersion in $providerTestsFrameworkVersions) {
echo "=== FirebirdClient tests ($providerTestsFrameworkVersion) ==="
pushd "$testsBaseDir\bin\$Configuration\$providerTestsFrameworkVersion"
try {
.\FirebirdSql.Data.FirebirdClient.Tests.exe --labels=All "--where=(ServerType==$serverType && Compression==$compression && WireCrypt==$wireCrypt) || Category==NoServer"
Check-ExitCode
}
finally {
popd
}
}
}

Expand Down