Skip to content

Commit 9a39707

Browse files
committed
Remove Cspdf.Tests project and associated test files, and simplify CI/CD workflows by consolidating build steps for Linux and Windows environments.
1 parent 0b18b3a commit 9a39707

File tree

7 files changed

+1
-332
lines changed

7 files changed

+1
-332
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,8 @@ on:
77
branches: [ main, develop ]
88

99
jobs:
10-
build-windows:
11-
runs-on: windows-latest
12-
13-
steps:
14-
- uses: actions/checkout@v4
15-
16-
- name: Setup .NET
17-
uses: actions/setup-dotnet@v4
18-
with:
19-
dotnet-version: '8.0.x'
20-
21-
- name: Restore dependencies
22-
run: dotnet restore
23-
24-
- name: Build
25-
run: dotnet build --no-restore --configuration Release
26-
27-
- name: Run tests
28-
run: dotnet test --no-build --configuration Release --verbosity normal
29-
30-
build-linux:
10+
build:
3111
runs-on: ubuntu-latest
32-
continue-on-error: true
3312

3413
steps:
3514
- uses: actions/checkout@v4
@@ -44,8 +23,5 @@ jobs:
4423

4524
- name: Build
4625
run: dotnet build --no-restore --configuration Release
47-
48-
- name: Run tests (skip System.Drawing tests on Linux)
49-
run: dotnet test --no-build --configuration Release --verbosity normal --filter "FullyQualifiedName!~System.Drawing" || echo "Tests skipped on Linux due to System.Drawing.Common limitation"
5026

5127

.github/workflows/publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ jobs:
2727
- name: Build
2828
run: dotnet build --no-restore --configuration Release
2929

30-
- name: Run tests
31-
run: dotnet test --no-build --configuration Release --verbosity normal
32-
3330
- name: Pack
3431
run: dotnet pack --no-build --configuration Release --output ./artifacts
3532

Cspdf.Tests/Cspdf.Tests.csproj

Lines changed: 0 additions & 31 deletions
This file was deleted.

Cspdf.Tests/PageSizeHelperTests.cs

Lines changed: 0 additions & 49 deletions
This file was deleted.

Cspdf.Tests/PdfDocumentTests.cs

Lines changed: 0 additions & 210 deletions
This file was deleted.

Cspdf.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,5 @@
3737
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
3838
</ItemGroup>
3939

40-
<ItemGroup>
41-
<!-- Exclude test files from main project -->
42-
<Compile Remove="Cspdf.Tests\**" />
43-
<Content Remove="Cspdf.Tests\**" />
44-
<EmbeddedResource Remove="Cspdf.Tests\**" />
45-
<None Remove="Cspdf.Tests\**" />
46-
</ItemGroup>
47-
4840
</Project>
4941

Cspdf.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cspdf", "Cspdf.csproj", "{A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B4C5D}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cspdf.Tests", "Cspdf.Tests\Cspdf.Tests.csproj", "{B2C3D4E5-F6A7-5B8C-9D0E-1F2A3B4C5D6E}"
9-
EndProject
108
Global
119
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1210
Debug|Any CPU = Debug|Any CPU
@@ -17,10 +15,6 @@ Global
1715
{A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B4C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
1816
{A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B4C5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
1917
{A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B4C5D}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{B2C3D4E5-F6A7-5B8C-9D0E-1F2A3B4C5D6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{B2C3D4E5-F6A7-5B8C-9D0E-1F2A3B4C5D6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{B2C3D4E5-F6A7-5B8C-9D0E-1F2A3B4C5D6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{B2C3D4E5-F6A7-5B8C-9D0E-1F2A3B4C5D6E}.Release|Any CPU.Build.0 = Release|Any CPU
2418
EndGlobalSection
2519
EndGlobal
2620

0 commit comments

Comments
 (0)