Skip to content

Commit 17704ed

Browse files
Farshad DASHTIFarshad DASHTI
authored andcommitted
Trigger
1 parent bc026f8 commit 17704ed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build-test-template.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ jobs:
6969
- name: Restore dependencies
7070
run: dotnet restore ${{ inputs.project_path }}
7171

72+
- name: Set Test Project Path
73+
run: echo "test_project_path=${{ inputs.project_path/src\//src\/Tests\/}}.Tests" >> $GITHUB_ENV
74+
7275
- name: Build, Test and Analyze
7376
env:
7477
CI: true
@@ -83,7 +86,7 @@ jobs:
8386
8487
- name: Run Tests
8588
if: ${{ inputs.run_tests }}
86-
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" ${{ inputs.project_path }}
89+
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" ${{ env.test_project_path }}
8790

8891
- name: Generate Code Coverage Report
8992
if: ${{ inputs.run_tests }}

src/DfE.CoreLibs.Utilities/DfE.CoreLibs.Utilities.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@
1717
</ItemGroup>
1818

1919
</Project>
20+

0 commit comments

Comments
 (0)