Skip to content

Commit 67e4feb

Browse files
authored
Update ubuntu.yml
1 parent 5edd890 commit 67e4feb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ubuntu.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ jobs:
6161
uses: actions/setup-dotnet@v4
6262
with:
6363
dotnet-version: 8.0.x
64+
- name: List refs
65+
run: dotnet list CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference
66+
- name: Delete reference
67+
run: dotnet remove CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj reference "..\..\CSharpToJavaScript\CSharpToJavaScript\CSharpToJavaScript.csproj"
6468
- name: Replace reference
65-
run: sed -i 's+<ProjectReference Include="..\..\CSharpToJavaScript\CSharpToJavaScript\CSharpToJavaScript.csproj" />+<Reference Include="MyAssembly"><HintPath>~\artifact\CSharpToJavaScript.dll</HintPath></Reference>+g' CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj
69+
run: sed -i 's+</Project>+<Reference Include="CSharpToJavaScript"><HintPath>~\artifact\CSharpToJavaScript.dll</HintPath></Reference></Project>+g' CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj
6670
- name: Run tests
6771
run: dotnet test CSTOJS_Tests/CSTOJS_Tests/CSTOJS_Tests.csproj --logger "html;logfilename=test-result-${{ matrix.os }}.html;verbosity=detailed" --results-directory ~\artifact\
6872
- name: Upload test result

0 commit comments

Comments
 (0)