Skip to content

Commit

Permalink
Fix docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
alsi-lawr committed Aug 31, 2024
1 parent 539bd62 commit f019492
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/bin/**
**/obj/**
**/*.cobertura*
**/report
**/*cobertura*
node_modules
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ async function run() {
await exec.exec('docker', [
'run',
'--rm',
'-v ', `${workspace}:/workspace`,
'-v', `${workspace}:/workspace`,
'-e', `UNIT_TEST_PROJECT=${project}`,
'-e', `UNIT_TEST_EXCLUDE_FILES=${excludeFiles}`,
'-e', `UNIT_TEST_EXCLUDE_MODULES=${excludeModules}`,
'-e', `UNIT_TEST_COVERAGE_THRESHOLD=${threshold}`,
'-w', '/workspace',
imageName,
'bash -c', './src/test.sh', project
'bash -c', `"./src/test.sh ${project}"`
]);

// Optionally, set an output for the action (e.g., path to coverage report)
Expand Down
8 changes: 8 additions & 0 deletions test/Test.Project/Test.Project.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
Expand Down

0 comments on commit f019492

Please sign in to comment.