Skip to content

Commit 73a6419

Browse files
authored
Dropping .NET Framework test builds (#2305)
* Add missing cookies tests * https urls * add some page to frame * fix https url * fix test * fix cert install * bump to net7 * more bumps * Remove framework reference * Test only in net core * demo cleanup * fix build * undo triage code * improve cookies tests in firefox
1 parent ea6f4ec commit 73a6419

File tree

22 files changed

+94
-33
lines changed

22 files changed

+94
-33
lines changed

.github/workflows/PushNugetPackageToIntNugetOrg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
env:
7-
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use
7+
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use
88

99
jobs:
1010
PushToIntNugetOrg:
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup .NET
1515
uses: actions/setup-dotnet@v3
1616
with:
17-
dotnet-version: 6.0.x
17+
dotnet-version: 7.0.x
1818
- name: Install dependencies
1919
run: |
2020
dotnet restore lib/PuppeteerSharp.sln

.github/workflows/PushNugetPackageToNugetOrg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- v*
88

99
env:
10-
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use
10+
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use
1111

1212
jobs:
1313
PushToNugetOrg:

.github/workflows/demo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
os: [windows-2022, macos-latest]
2323
env:
24-
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use
24+
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use
2525

2626
steps:
2727
- uses: actions/checkout@v2
@@ -38,4 +38,4 @@ jobs:
3838
- name: Run Project
3939
working-directory: ./demos/PuppeteerSharpPdfDemo
4040
run: |
41-
dotnet run -p PuppeteerSharpPdfDemo-Local.csproj -f net6.0 auto-exit
41+
dotnet run --project PuppeteerSharpPdfDemo-Local.csproj auto-exit

.github/workflows/dotnet.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- '**.runsettings'
1616

1717
env:
18-
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use
18+
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use
1919

2020
jobs:
2121
build:
@@ -43,6 +43,7 @@ jobs:
4343
- name: Install dependencies (Linux)
4444
if: matrix.os == 'ubuntu-latest'
4545
run: |
46+
dotnet dev-certs https --clean
4647
dotnet dev-certs https -ep lib/PuppeteerSharp.TestServer/testCert.cer
4748
sudo openssl x509 -inform der -in lib/PuppeteerSharp.TestServer/testCert.cer -out /usr/local/share/ca-certificates/testCert.crt -outform pem
4849
sudo update-ca-certificates
@@ -62,11 +63,12 @@ jobs:
6263
Xvfb :1 -screen 5 1024x768x8 &
6364
export DISPLAY=:1.5
6465
cd lib/PuppeteerSharp.Tests
65-
dotnet test -f net6.0 -s test.runsettings -c Debug --logger "trx;LogFileName=TestResults.xml"
66+
dotnet test -s test.runsettings -c Debug --logger "trx;LogFileName=TestResults.xml"
6667
- name: Test (Windows)
6768
if: matrix.os == 'windows-latest'
6869
env:
6970
PRODUCT: ${{ matrix.browser }}
7071
run: |
7172
cd .\lib\PuppeteerSharp.Tests
72-
dotnet test -f net6.0 -s test.runsettings
73+
dotnet test -s test.runsettings
74+

demos/PuppeteerSharpPdfDemo/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static async Task Main(string[] args)
1616
};
1717

1818
Console.WriteLine("Downloading chromium");
19+
1920
using var browserFetcher = new BrowserFetcher();
2021
await browserFetcher.DownloadAsync();
2122

demos/PuppeteerSharpPdfDemo/PuppeteerSharpPdfDemo-Local.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net6.0;net471</TargetFrameworks>
5+
<TargetFramework>net7.0</TargetFramework>
66
<LangVersion>8.0</LangVersion>
77
</PropertyGroup>
8-
<PropertyGroup Condition="'$(TargetFramework)'=='net471'">
9-
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
10-
</PropertyGroup>
118
<ItemGroup>
129
<ProjectReference Include="..\..\lib\PuppeteerSharp\PuppeteerSharp.csproj" />
1310
</ItemGroup>

demos/PuppeteerSharpPdfDemo/PuppeteerSharpPdfDemo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="PuppeteerSharp" Version="3.0.0" />

lib/PuppeteerSharp.DevicesFetcher/PuppeteerSharp.DevicesFetcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />

lib/PuppeteerSharp.Nunit/PuppeteerSharp.Nunit.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT' ">net48;net6.0</TargetFrameworks>
5-
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' ">net6.0</TargetFrameworks>
4+
<TargetFramework>net7.0</TargetFramework>
65
</PropertyGroup>
76
<ItemGroup>
87
<PackageReference Include="NUnit" Version="3.13.3" />

lib/PuppeteerSharp.TestServer/PuppeteerSharp.TestServer.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT' ">net48;net6.0</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT' ">net6.0</TargetFrameworks>
3+
<TargetFramework>net7.0</TargetFramework>
54
<OutputType>Library</OutputType>
65
</PropertyGroup>
76
<ItemGroup>
@@ -10,10 +9,6 @@
109
</Content>
1110
</ItemGroup>
1211
<Import Project="../Common/SignAssembly.props" />
13-
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
15-
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
16-
</ItemGroup>
1712
<Target Name="testCertCheck" BeforeTargets="BeforeBuild" Condition="!Exists('testCert.cer')">
1813
<Error Text="Follow https://github.com/hardkoded/puppeteer-sharp/blob/master/CONTRIBUTING.md#getting-setup to setup a development certificate." />
1914
</Target>

0 commit comments

Comments
 (0)