Skip to content

Commit d9dff17

Browse files
committed
Update GitHub Actions workflow to specify solution file for build and test steps
- Modified the CI workflow to explicitly reference the solution file `FunWasHad.sln` for dependency restoration, building, testing, and code formatting, ensuring clarity and correctness in the build process. - Adjusted project paths to use forward slashes for consistency across the workflow. Signed-off-by: sharpninja <[email protected]>
1 parent f1b98e2 commit d9dff17

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939

4040
- name: Restore dependencies
4141
timeout-minutes: 10
42-
run: dotnet restore
42+
run: dotnet restore FunWasHad.sln
4343

4444
- name: Build solution
4545
timeout-minutes: 15
46-
run: dotnet build --no-restore --configuration Release
46+
run: dotnet build FunWasHad.sln --no-restore --configuration Release
4747

4848
- name: Run tests
4949
timeout-minutes: 10
50-
run: dotnet test --no-build --configuration Release --verbosity normal --logger "trx;LogFileName=test-results.trx"
50+
run: dotnet test FunWasHad.sln --no-build --configuration Release --verbosity normal --logger "trx;LogFileName=test-results.trx"
5151

5252
- name: Upload test results
5353
if: always()
@@ -86,11 +86,11 @@ jobs:
8686
8787
- name: Restore dependencies
8888
timeout-minutes: 10
89-
run: dotnet restore src\FWH.Mobile\FWH.Mobile.Android\FWH.Mobile.Android.csproj
89+
run: dotnet restore src/FWH.Mobile/FWH.Mobile.Android/FWH.Mobile.Android.csproj
9090

9191
- name: Build Android app
9292
timeout-minutes: 20
93-
run: dotnet build src\FWH.Mobile\FWH.Mobile.Android\FWH.Mobile.Android.csproj --no-restore --configuration Release
93+
run: dotnet build src/FWH.Mobile/FWH.Mobile.Android/FWH.Mobile.Android.csproj --no-restore --configuration Release
9494

9595
build_api:
9696
name: Build Location API
@@ -142,10 +142,10 @@ jobs:
142142
dotnet-version: ${{ env.DOTNET_VERSION }}
143143

144144
- name: Restore dependencies
145-
run: dotnet restore
145+
run: dotnet restore FunWasHad.sln
146146

147147
- name: Check code format
148-
run: dotnet format --verify-no-changes --verbosity diagnostic
148+
run: dotnet format FunWasHad.sln --verify-no-changes --verbosity diagnostic
149149

150150
- name: Run code analysis
151-
run: dotnet build --no-restore --configuration Release /p:TreatWarningsAsErrors=true
151+
run: dotnet build FunWasHad.sln --no-restore --configuration Release /p:TreatWarningsAsErrors=true

0 commit comments

Comments
 (0)