From f0194924364fda730e3136d99d0908f5bd963108 Mon Sep 17 00:00:00 2001 From: alsi-lawr Date: Sat, 31 Aug 2024 22:38:55 +0100 Subject: [PATCH] Fix docker run --- .gitignore | 3 ++- index.js | 4 ++-- test/Test.Project/Test.Project.csproj | 8 ++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5ddfe64..521216a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ **/bin/** **/obj/** -**/*.cobertura* +**/report +**/*cobertura* node_modules diff --git a/index.js b/index.js index 4643cf7..becf592 100644 --- a/index.js +++ b/index.js @@ -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) diff --git a/test/Test.Project/Test.Project.csproj b/test/Test.Project/Test.Project.csproj index 2ac660e..ca487c7 100644 --- a/test/Test.Project/Test.Project.csproj +++ b/test/Test.Project/Test.Project.csproj @@ -10,6 +10,14 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all +