Skip to content

Commit

Permalink
chore: Add GH action if after merge conflict again
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Feb 10, 2024
1 parent 4fa7aff commit 52f64c2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .cake-scripts/parameters.cake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ internal sealed class BuildParameters
public NuGetCredentials NuGetCredentials { get; private set; }
public BuildProjects Projects { get; private set; }
public BuildPaths Paths { get; private set; }
public DotNetMSBuildSettings MSBuildSettings { get; private set; }

public static BuildParameters Instance(ICakeContext context)
{
Expand Down Expand Up @@ -60,7 +59,6 @@ internal sealed class BuildParameters
NuGetCredentials = NuGetCredentials.GetNuGetCredentials(context),
Projects = BuildProjects.Instance(context, solutionFilePath),
Paths = BuildPaths.Instance(context, buildInformation.Version),
MSBuildSettings = new DotNetMSBuildSettings()
};
}
}
1 change: 1 addition & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:

- name: Upload Test And Coverage Results
uses: actions/upload-artifact@v4
if: true
with:
name: ${{ matrix.os }}
path: test-results
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: 'Test Report'
name: Test Report

on:
workflow_run:
workflows: ['Continuous Integration & Delivery']
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
report:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, windows-2022 ]

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
actions: read
checks: write
contents: read

steps:
- name: Publish ${{ matrix.os }} Test Results
uses: dorny/test-reporter@v1
with:
artifact: ${{ matrix.os }}
name: Test Results (${{ matrix.os }})
path: '*.trx'
reporter: dotnet-trx
- name: Publish '${{ matrix.os }}' Test Report
uses: dorny/test-reporter@v1
with:
artifact: ${{ matrix.os }}
name: ${{ matrix.os }}
path: '*.trx'
reporter: dotnet-trx
1 change: 0 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Task("Tests")
NoRestore = true,
NoBuild = true,
Collectors = new[] { "XPlat Code Coverage;Format=opencover" },
MSBuildSettings = param.MSBuildSettings.WithProperty("UseTrxLogger", "true"),
Filter = param.TestFilter,
ResultsDirectory = param.Paths.Directories.TestResultsDirectoryPath,
ArgumentCustomization = args => args
Expand Down
19 changes: 8 additions & 11 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<ItemGroup>
<VSTestLogger Include="trx%3BLogFileName=$(MSBuildProjectName).trx" Condition="$(UseTrxLogger) == 'true'" />
</ItemGroup>
<PropertyGroup>
<VSTestLogger>@(VSTestLogger)</VSTestLogger>
</PropertyGroup>
</Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<VSTestLogger>trx%3BLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
</PropertyGroup>
</Project>

0 comments on commit 52f64c2

Please sign in to comment.