1111
1212env :
1313 PRODUCT_NAME : TeamTools.Linter.CommandLine
14+ TEST_PROJECT : TeamTools.Linter.CommandLineTests
1415 OUTPUT_PATH : ${{ github.workspace }}/.bin/
1516
1617jobs :
7576 run : |
7677 dotnet add package coverlet.msbuild --version 6.0.4 &&
7778 dotnet add package coverlet.collector --version 6.0.4
78- working-directory : TeamTools.Linter.CommandLineTests
79+ working-directory : ${{ env.TEST_PROJECT }}
7980
8081 - name : Restore dependencies
8182 # if: ${{ steps.cache-nugets.outputs.cache-hit != 'true' }}
8889 --configuration ${{ matrix.configuration }}
8990 -p:VersionPrefix=${{ needs.semver.outputs.next-version }}
9091 -p:ContinuousIntegrationBuild=true
92+ -p:${{ TEST_PROJECT }}.OutputPath="${{ env.OUTPUT_PATH }}Tests/${{ matrix.configuration }}/"
9193 -p:SourceRevisionId=${{ github.sha }}
9294 -p:RepositoryUrl="${{ github.repositoryUrl }}"
9395 -p:RepositoryType=git
99101 run : >
100102 dotnet test --no-build --verbosity normal
101103 -p:BaseOutputPath="${{ env.OUTPUT_PATH }}"
104+ -p:${{ TEST_PROJECT }}.OutputPath="${{ env.OUTPUT_PATH }}Tests/${{ matrix.configuration }}/"
102105 --configuration ${{ matrix.configuration }}
103106 --logger "trx;LogFileName=${{ github.workspace }}/TestResults/test-results.trx"
104107
@@ -108,6 +111,7 @@ jobs:
108111 dotnet test --no-build --verbosity normal
109112 -p:CollectCoverage=true -p:CoverletOutput="${{ github.workspace }}/TestResults/" -p:CoverletOutputFormat=opencover /p:ExcludeByFile="**/TeamTools.TSQL.Common/**/*.cs"
110113 -p:BaseOutputPath="${{ env.OUTPUT_PATH }}"
114+ -p:${{ TEST_PROJECT }}.OutputPath="${{ env.OUTPUT_PATH }}Tests/${{ matrix.configuration }}/"
111115 --configuration ${{ matrix.configuration }}
112116 --logger "trx;LogFileName=${{ github.workspace }}/TestResults/test-results.trx"
113117
@@ -260,7 +264,7 @@ jobs:
260264 run : |
261265 cd "${{ steps.cli.outputs.download-path }}"
262266 ls *.json
263- find . -type f -name ' *.dev.json' -delete
267+ find . -type f -iname " *.dev.json" -delete
264268
265269 - name : Upload repack
266270 uses : actions/upload-artifact@v4
0 commit comments