Skip to content

Commit 6fb940e

Browse files
author
Alex J Lennon
committed
Simplify CI: Just run dotnet test
The simplest solution - dotnet test builds both projects correctly. No need to build main project first - that was causing the assets file issue. Main project only needs to be built separately for publishing, which happens after tests pass. Tested locally - all 92 tests pass.
1 parent 7fade2e commit 6fb940e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ jobs:
3636
# This prevents issues with shared obj directory between different runtime builds
3737
rm -rf obj bin publish
3838
39-
- name: Build and test
39+
- name: Test
4040
run: |
41-
# Build main project with runtime - this creates runtime-specific binary
42-
dotnet build src/InstDotNet.csproj -c Release -r ${{ matrix.runtime }} -p:GitCommitHash=${{ steps.git.outputs.hash }}
43-
44-
# Build and test in one step - dotnet test will restore and build test project correctly
45-
# This avoids the issue where main project restore overwrites shared assets
41+
# Just run tests - dotnet test will build both projects as needed
42+
# The test project depends on the main project, so both get built correctly
4643
dotnet test tests/InstDotNet.Tests.csproj -c Release -p:GitCommitHash=${{ steps.git.outputs.hash }} --verbosity normal
4744
continue-on-error: false
4845

0 commit comments

Comments
 (0)