mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
Compare commits
4 Commits
v2.316.1
...
AddBuildIm
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8547726905 | ||
|
|
7287a14f9f | ||
|
|
cdd8a8e694 | ||
|
|
1fc63f4aaa |
@@ -15,6 +15,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="coverlet.collector" Version="3.2.0">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
|
||||||
<PackageReference Include="xunit" Version="2.4.1" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||||
|
|||||||
12
src/dev.sh
12
src/dev.sh
@@ -194,6 +194,10 @@ function layout ()
|
|||||||
|
|
||||||
function runtest ()
|
function runtest ()
|
||||||
{
|
{
|
||||||
|
if [[ ! -d "$LAYOUT_DIR" ]]; then
|
||||||
|
echo "$LAYOUT_DIR doesn't exist. Generating it now ..."
|
||||||
|
layout
|
||||||
|
fi
|
||||||
heading "Testing ..."
|
heading "Testing ..."
|
||||||
|
|
||||||
if [[ ("$CURRENT_PLATFORM" == "linux") || ("$CURRENT_PLATFORM" == "darwin") ]]; then
|
if [[ ("$CURRENT_PLATFORM" == "linux") || ("$CURRENT_PLATFORM" == "darwin") ]]; then
|
||||||
@@ -203,6 +207,13 @@ function runtest ()
|
|||||||
dotnet msbuild -t:test -p:PackageRuntime="${RUNTIME_ID}" -p:BUILDCONFIG="${BUILD_CONFIG}" -p:RunnerVersion="${RUNNER_VERSION}" ./dir.proj || failed "failed tests"
|
dotnet msbuild -t:test -p:PackageRuntime="${RUNTIME_ID}" -p:BUILDCONFIG="${BUILD_CONFIG}" -p:RunnerVersion="${RUNNER_VERSION}" ./dir.proj || failed "failed tests"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function coverage ()
|
||||||
|
{
|
||||||
|
heading "Coverage ..."
|
||||||
|
cd Test && dotnet test --collect:"XPlat Code Coverage;Format=json"
|
||||||
|
# reportgenerator -reports:"/workspaces/runner/src/Test/TestResults/ecf2bd75-83e9-489a-9339-d61293abf98b/coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
|
||||||
|
}
|
||||||
|
|
||||||
function format()
|
function format()
|
||||||
{
|
{
|
||||||
heading "Formatting..."
|
heading "Formatting..."
|
||||||
@@ -369,6 +380,7 @@ case $DEV_CMD in
|
|||||||
"p") package;;
|
"p") package;;
|
||||||
"format") format;;
|
"format") format;;
|
||||||
"f") format;;
|
"f") format;;
|
||||||
|
"c") coverage;;
|
||||||
*) echo "Invalid cmd. Use build(b), test(t), layout(l), package(p), or format(f)";;
|
*) echo "Invalid cmd. Use build(b), test(t), layout(l), package(p), or format(f)";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user