Skip to content

Commit 0b0624f

Browse files
author
Alex J Lennon
committed
Fix CI: Let dotnet test handle restore and build
The simplest solution - just run dotnet test without --no-restore or --no-build. It will restore, build, and test all in one go. This avoids the complexity of trying to manage restore/build steps separately. Tested locally - all 92 tests pass.
1 parent 11111d5 commit 0b0624f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ jobs:
2929
- name: Clean build artifacts
3030
run: rm -rf obj bin
3131

32-
- name: Restore dependencies
33-
run: dotnet restore tests/InstDotNet.Tests.csproj
34-
3532
- name: Run Tests
36-
run: dotnet test tests/InstDotNet.Tests.csproj -c Release -p:GitCommitHash=${{ steps.git.outputs.hash }} --no-restore --verbosity normal
33+
run: dotnet test tests/InstDotNet.Tests.csproj -c Release -p:GitCommitHash=${{ steps.git.outputs.hash }} --verbosity normal
3734
continue-on-error: false
3835

3936
build:

0 commit comments

Comments
 (0)