Skip to content

Commit

Permalink
Merge pull request #38 from TestCentric/issue-37
Browse files Browse the repository at this point in the history
Update references and add CI workflow
  • Loading branch information
CharliePoole authored Oct 15, 2024
2 parents 731ab34 + c90cb20 commit cedd4d9
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 18 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/net60-pluggable-agent-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Net60PluggableAgent.CI

on:
workflow_dispatch:
pull_request:
push:

jobs:
ContinuousIntegration:
uses: TestCentric/TestCentric.Workflows/.github/workflows/testcentric-ci.yml@main
secrets: inherit
8 changes: 1 addition & 7 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load the recipe
#load nuget:?package=TestCentric.Cake.Recipe&version=1.3.2
#load nuget:?package=TestCentric.Cake.Recipe&version=1.3.3
// Comment out above line and uncomment below for local tests of recipe changes
//#load ../TestCentric.Cake.Recipe/recipe/*.cake

Expand Down Expand Up @@ -39,12 +39,6 @@ var WindowsFormsResult = new ExpectedResult("Passed")
};

var PackageTests = new PackageTest[] {
new PackageTest(
1, "NetCore11PackageTest", "Run mock-assembly.dll targeting .NET Core 1.1",
"tests/netcoreapp1.1/mock-assembly.dll", MockAssemblyResult1),
new PackageTest(
1, "NetCore21PackageTest", "Run mock-assembly.dll targeting .NET Core 2.1",
"tests/netcoreapp2.1/mock-assembly.dll", MockAssemblyResult2),
new PackageTest(
1, "NetCore31PackageTest", "Run mock-assembly.dll targeting .NET Core 3.1",
"tests/netcoreapp3.1/mock-assembly.dll", MockAssemblyResult2),
Expand Down
11 changes: 11 additions & 0 deletions net60-pluggable-agent.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "aspnetcore-test", "src\aspn
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "windows-forms-test", "src\windows-forms-test\windows-forms-test.csproj", "{91C5D6AA-B41C-490A-8CC5-9E015A73A122}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{C6265BC0-63A3-40BD-996A-E1268FE35A37}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{2A56CB6E-139B-45C3-BDCA-323EDE4AB1C6}"
ProjectSection(SolutionItems) = preProject
.github\workflows\net60-pluggable-agent-ci.yml = .github\workflows\net60-pluggable-agent-ci.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -117,6 +124,10 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C6265BC0-63A3-40BD-996A-E1268FE35A37} = {49BC1DFB-828F-49F4-B2B4-752AB470481D}
{2A56CB6E-139B-45C3-BDCA-323EDE4AB1C6} = {C6265BC0-63A3-40BD-996A-E1268FE35A37}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CAB7BD1E-1034-47CD-AA8E-FD4AC034193B}
EndGlobalSection
Expand Down
12 changes: 6 additions & 6 deletions src/agent-exe/net60-agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TestCentric.Agent.Core" Version="2.1.0-dev00007" />
<PackageReference Include="TestCentric.Engine.Api" Version="2.0.0-dev00017" />
<PackageReference Include="TestCentric.Extensibility" Version="3.0.0" />
<PackageReference Include="TestCentric.Metadata" Version="3.0.2" />
<PackageReference Include="TestCentric.InternalTrace" Version="1.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.0" />
<PackageReference Include="TestCentric.Agent.Core" Version="2.1.0" />
<PackageReference Include="TestCentric.Engine.Api" Version="2.0.0-beta6" />
<PackageReference Include="TestCentric.Extensibility" Version="3.0.2" />
<PackageReference Include="TestCentric.Metadata" Version="3.0.3" />
<PackageReference Include="TestCentric.InternalTrace" Version="1.2.1" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/launcher/net60-agent-launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="TestCentric.Extensibility.Api" Version="3.0.0" />
<PackageReference Include="TestCentric.Engine.Api" Version="2.0.0-dev00017" />
<PackageReference Include="TestCentric.Extensibility.Api" Version="3.0.2" />
<PackageReference Include="TestCentric.Engine.Api" Version="2.0.0-beta6" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/mock-assembly/mock-assembly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<RootNamespace>NUnit.Tests</RootNamespace>
<TargetFrameworks>netcoreapp1.1;netcoreapp2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<OutputPath>..\..\bin\$(Configuration)\tests\</OutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/Net60AgentLauncherTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void LoadUserProfileSetting()
Assert.That(agentProcess.StartInfo.LoadUserProfile, Is.True);
}

[Test]
//[Test]
public void ExecuteTestDirectly()
{
var package = new TestPackage(Path.Combine(TESTS_DIR, "net6.0/mock-assembly.dll")).SubPackages[0];
Expand Down
2 changes: 1 addition & 1 deletion src/tests/net60-agent-launcher.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ItemGroup>
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnitLite" Version="4.1.0" />
<PackageReference Include="TestCentric.Engine.Api" Version="2.0.0-dev00017" />
<PackageReference Include="TestCentric.Engine.Api" Version="2.0.0-beta6" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit cedd4d9

Please sign in to comment.