Skip to content

Commit 7e862c8

Browse files
authored
Update ci.yml
1 parent 35f07da commit 7e862c8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
env:
1313
PRODUCT_NAME: TeamTools.Linter.CommandLine
14+
TEST_PROJECT: TeamTools.Linter.CommandLineTests
1415
OUTPUT_PATH: ${{ github.workspace }}/.bin/
1516

1617
jobs:
@@ -75,7 +76,7 @@ jobs:
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' }}
@@ -88,6 +89,7 @@ jobs:
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
@@ -99,6 +101,7 @@ jobs:
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

Comments
 (0)